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

Commit

Permalink
Update ORM.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j authored Feb 5, 2019
1 parent f7a6f0a commit cee778c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Spiral/ORM/ORM.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit cee778c

Please sign in to comment.