1
0
mirror of synced 2024-12-13 14:56:01 +03:00

Merge pull request #104 from shieldo/missing_joincolumn_in_yaml

added missing JoinColumn node for xml and yaml for many-to-one unidirect...
This commit is contained in:
Benjamin Eberlei 2012-11-24 02:34:17 -08:00
commit 7f0ff6a079

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::