Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1257

Duplicate PHP methods generated from XML metadata lifecycle-callbacks

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.0.7, 2.1.1, 2.2
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      Zend Server 5.1.0, PHP 5.3.5, Apache 2.2.10, Linux (SUSE)

      Description

      If lifecycle callbacks are added to XML metadata like so:

      	<lifecycle-callbacks>
      		<lifecycle-callback type="prePersist" method="validate" />
      		<lifecycle-callback type="preUpdate" method="validate" />
      	</lifecycle-callbacks>
      

      The validate() method will appear twice in an entity generated from this metadata.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Stephen Lang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: