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>
|
||||
<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::
|
||||
|
Loading…
Reference in New Issue
Block a user