mirror of
https://github.com/symfony/symfony-docs.git
synced 2026-03-24 00:32:14 +01:00
Changed text to mention one Product object instead of many
The getOneOrNullResult will not return multiple results.
This commit is contained in:
@@ -501,7 +501,7 @@ following method to the ``ProductRepository`` class::
|
||||
}
|
||||
}
|
||||
|
||||
This will *still* return an array of ``Product`` objects. But now, when you call
|
||||
This will *still* return a ``Product`` object. But now, when you call
|
||||
``$product->getCategory()`` and use that data, no second query is made.
|
||||
|
||||
Now, you can use this method in your controller to query for a ``Product``
|
||||
|
||||
Reference in New Issue
Block a user