Changed text to mention one Product object instead of many

The getOneOrNullResult will not return multiple results.
This commit is contained in:
Pjotr Savitski
2025-05-17 09:41:44 +03:00
committed by GitHub
parent e70e4743ae
commit 5952dd3e9e

View File

@@ -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``