added missing JoinColumn node for xml and yaml for many-to-one unidirectional mapping
This commit is contained in:
parent
b4a9b1550c
commit
bc76f33092
@ -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::
|
||||||
|
Loading…
Reference in New Issue
Block a user