Skip to content

Commit

Permalink
Update repository.md (#325)
Browse files Browse the repository at this point in the history
* Update repository.md

Docs update - #324

* Update repository.md

* Update repository.md
  • Loading branch information
Gappa authored and enumag committed Aug 10, 2018
1 parent 9c3abf6 commit e894e0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/en/repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ Those operators are:
- `<=`
- `>`
- `>=`
- `like`

```php
$commentsRepository->findBy(['article.date >=' => new \DateTime('-1 day')]);
$commentsRepository->findBy(['article.date >' => new \DateTime('-1 day')]);
$commentsRepository->findBy(['article.date <' => new \DateTime('-1 day')]);
$commentsRepository->findBy(['article.date <=' => new \DateTime('-1 day')]);
$commentsRepository->findBy(['article.date !=' => new \DateTime('-1 day')]);
$commentsRepository->findBy(['article.title like' => '%' . $title . '%']);
```

You can also use array or `NULL` as value of the property to create SQL `IN` or `IS` command
Expand Down

0 comments on commit e894e0e

Please sign in to comment.