Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1058

Documentation on orphan removal in XML Mapping is incorrect

    Details

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

      Description

      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>

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Josh Freed
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: