1
0
mirror of synced 2025-02-02 13:31:45 +03:00

Disallow orphan removal attribute on many-to-one

It only makes sense for collections, and there is no collection here.
Plus the docs do not say it is supported.
See
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/working-with-associations.html#orphan-removal
This commit is contained in:
Grégoire Paris 2017-10-13 16:38:02 +02:00
parent aea970722e
commit 2a865177b9
No known key found for this signature in database
GPG Key ID: F30226DD290FCB25

View File

@ -540,7 +540,6 @@
</xs:sequence>
<xs:attribute name="target-entity" type="xs:string" use="required" />
<xs:attribute name="field" type="xs:NMTOKEN" use="required" />
<xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
<xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
<xs:attribute name="inversed-by" type="xs:NMTOKEN" />
<xs:anyAttribute namespace="##other"/>