Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-1058

Documentation on orphan removal in XML Mapping is incorrect


    • Type: Documentation
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Documentation
    • Security Level: All
    • Labels:


      The XML Mapping documentation indicates that "orphan-removal" is an attribute on One-to-One or Many-to-One elements, but in DoctrineORM version 2.0 that does not work. It seems I have to make "orphan-removal" a child attribute of those elements to turn it on.

      Just to be clear:

      Documentation says to do this, but it does not work:
      <one-to-many field="..." orphan-removal="true"> ... </one-to-many>

      This does work:
      <one-to-many field="..."> <orphan-removal>true</orphan-removal> </one-to-many>


        jfreed Josh Freed created issue -
        beberlei Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 12450 ] jira-feedback [ 13913 ]
        beberlei Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13913 ] jira-feedback2 [ 15777 ]
        beberlei Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15777 ] jira-feedback3 [ 18034 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={expand=changesets[0:20].revisions[0:29],reviews, query=DDC-1058}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)


          • Assignee:
            beberlei Benjamin Eberlei
            jfreed Josh Freed
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: