Skip to content

Commit

Permalink
Disallow orphan removal attribute on many-to-one
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Grégoire Paris committed Oct 13, 2017
1 parent aea9707 commit 2a86517
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion doctrine-mapping.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down

0 comments on commit 2a86517

Please sign in to comment.