Skip to content

Commit

Permalink
Fix review issues
Browse files Browse the repository at this point in the history
  • Loading branch information
olsavmic committed Jan 13, 2022
1 parent 2da7313 commit 32a0a85
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ Accessing private/protected properties/methods of the same class from different

.. sectionauthor:: Michael Olsavsky (olsavmic)

As explained in the
`restrictions for entity classes in the manual <https://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/architecture.html#entities>`_,
As explained in the :doc:`restrictions for entity classes in the manual <../reference/architecture>`,
it is dangerous to access private/protected properties of different entity instance of the same class because of lazy loading.

The proxy instance that's injected instead of the real entity may not be initialized yet
Expand All @@ -25,6 +24,7 @@ the proxy before use manually as follows:
<?php
use Doctrine\Common\Proxy\Proxy;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
Expand Down

0 comments on commit 32a0a85

Please sign in to comment.