From 5952dd3e9e4c863f3bb0d8926454cccd26e7f8da Mon Sep 17 00:00:00 2001 From: Pjotr Savitski Date: Sat, 17 May 2025 09:41:44 +0300 Subject: [PATCH] Changed text to mention one Product object instead of many The getOneOrNullResult will not return multiple results. --- doctrine/associations.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doctrine/associations.rst b/doctrine/associations.rst index 8dd9aa7f36b..2279d02a851 100644 --- a/doctrine/associations.rst +++ b/doctrine/associations.rst @@ -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``