Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Commit cee778c

Browse files
authored
Update ORM.php
1 parent f7a6f0a commit cee778c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Spiral/ORM/ORM.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public function source(string $class): RecordSource
249249
public function selector(string $class, bool $isolated = true): RecordSelector
250250
{
251251
//ORM is cloned in order to isolate cache scope.
252-
return new RecordSelector($class, $isolated ? clone $this : $this);
252+
return new RecordSelector($class, $this);
253253
}
254254

255255
/**

0 commit comments

Comments
 (0)