Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
janpecha authored and mibk committed Jun 29, 2023
1 parent f89c46e commit 42865a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Suppose we have the following repositories:
```php
class BaseRepository extends LeanMapper\Repository
{
public function find(IQuery $query)
public function find(Query $query)
{
$this->createEntities($query
->applyQuery($this->createFluent(), $this->mapper)
Expand Down Expand Up @@ -155,9 +155,9 @@ It is also possible to query an entity property (*currently only those propertie
```php
class BaseEntity extends LeanMapperQuery\Entity
{
protected static $magicMethodsPrefixes = array('find');
protected static $magicMethodsPrefixes = ['find'];

protected function find($field, IQuery $query)
protected function find($field, Query $query)
{
$entities = $this->queryProperty($field, $query);
return $this->entityFactory->createCollection($entities);
Expand Down

0 comments on commit 42865a3

Please sign in to comment.