1
0
mirror of synced 2024-12-13 22:56: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>
<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>
</doctrine-mapping>
@ -370,6 +372,9 @@ with the following:
manyToOne:
address:
targetEntity: Address
joinColumn:
name: address_id
referencedColumnName: id
.. note::