Skip to content

Commit

Permalink
Fix association mapping docs (closes #11797)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixafy committed Jan 31, 2025
1 parent 8918dca commit eb03d6b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/en/reference/association-mapping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -901,10 +901,11 @@ join columns default to the simple, unqualified class name of the
targeted class followed by "\_id". The referencedColumnName always
defaults to "id", just as in one-to-one or many-to-one mappings.

Additionally, when using typed properties with Doctrine 2.9 or newer
Additionally, when using typed properties with ORM 2.9 or newer
you can skip ``targetEntity`` in ``ManyToOne`` and ``OneToOne``
associations as they will be set based on type. Also ``nullable``
attribute on ``JoinColumn`` will be inherited from PHP type. So that:
associations as they will be set based on type. Also with ORM 3.4
or newer, ``nullable`` attribute on ``JoinColumn`` will be inherited
from PHP type. So that:

.. configuration-block::

Expand Down

0 comments on commit eb03d6b

Please sign in to comment.