Skip to content

Commit

Permalink
Spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
mosbth committed Apr 30, 2024
1 parent a5b3e9d commit 3ec443f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/symfony-doctrine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ Create the template file and add the following loop construct to render all the



Add custom query in repository
Add custom query in the repository
--------------------------

The class `ProductRepository` is the glue between the products and the database and the class is a place where you can add adaptions specific to the products, for example on how to find them.
Expand All @@ -606,8 +606,8 @@ Here is a method that finds products according to a where statement. Add it to t
public function findByMinimumValue($value): array
{
return $this->createQueryBuilder('p')
->andWhere('p.value >= :val')
->setParameter('val', $value)
->andWhere('p.value >= :value')
->setParameter('value', $value)
->orderBy('p.value', 'ASC')
->getQuery()
->getResult()
Expand Down

0 comments on commit 3ec443f

Please sign in to comment.