diff --git a/source/Spiral/ORM/ORM.php b/source/Spiral/ORM/ORM.php index dde4282..2c32d9e 100644 --- a/source/Spiral/ORM/ORM.php +++ b/source/Spiral/ORM/ORM.php @@ -249,7 +249,7 @@ public function source(string $class): RecordSource public function selector(string $class, bool $isolated = true): RecordSelector { //ORM is cloned in order to isolate cache scope. - return new RecordSelector($class, $isolated ? clone $this : $this); + return new RecordSelector($class, $this); } /**