diff --git a/docs/en/reference/working-with-objects.rst b/docs/en/reference/working-with-objects.rst index 4e11341a3..8368c9f13 100644 --- a/docs/en/reference/working-with-objects.rst +++ b/docs/en/reference/working-with-objects.rst @@ -699,8 +699,6 @@ You can also load by owning side associations through the repository: $number = $em->find('MyProject\Domain\Phonenumber', 1234); $user = $em->getRepository('MyProject\Domain\User')->findOneBy(array('phone' => $number->getId())); -Be careful that this only works by passing the ID of the associated entity, not yet by passing the associated entity itself. - The ``EntityRepository#findBy()`` method additionally accepts orderings, limit and offset as second to fourth parameters: .. code-block:: php