1
0
mirror of synced 2024-12-14 23:26:04 +03:00

added missing JoinColumn node for xml and yaml for many-to-one unidirectional mapping

This commit is contained in:
Douglas Greenshields 2012-06-18 19:21:44 +01:00
parent b4a9b1550c
commit bc76f33092

View File

@ -359,7 +359,9 @@ with the following:
<doctrine-mapping> <doctrine-mapping>
<entity name="User"> <entity name="User">
<many-to-one field="address" target-entity="Address" /> <many-to-one field="address" target-entity="Address">
<join-column name="address_id" referenced-column-name="id" />
</many-to-one>
</entity> </entity>
</doctrine-mapping> </doctrine-mapping>
@ -370,6 +372,9 @@ with the following:
manyToOne: manyToOne:
address: address:
targetEntity: Address targetEntity: Address
joinColumn:
name: address_id
referencedColumnName: id
.. note:: .. note::