Skip to content

Commit

Permalink
Query within the collection
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Feb 27, 2025
1 parent f27f563 commit 65598a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entries/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ public static function __callStatic($method, $parameters)

protected function getOriginByString($origin)
{
return Facades\Entry::find($origin);
return $this->collection()->queryEntries()->where('id', $origin)->first();
}

protected function getOriginFallbackValues()
Expand Down

0 comments on commit 65598a3

Please sign in to comment.