Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0-BETA1
    • Fix Version/s: 2.0-BETA3
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      Some placement of handler annotation is ignored.

      PrePersist is ignored:

      /**
       * @PrePersist
       *
       * Will trigger error.
       */
      public function error()
      {
      	trigger_error('ERROR');
      }
      

      PrePersist works fine:

      /**
       * @PrePersist
       * @foo
       *
       * Will trigger error.
       */
      public function error()
      {
      	trigger_error('ERROR');
      }
      

        Activity

        Hide
        Roman S. Borschel added a comment -

        Is this issue still valid? Is Doctrine Common Beta3 still affected? or is it an ORM issue?

        Show
        Roman S. Borschel added a comment - Is this issue still valid? Is Doctrine Common Beta3 still affected? or is it an ORM issue?
        Hide
        Benjamin Eberlei added a comment -

        Cannot reproduce, i have added a test-case that shows exactly the described code:

        http://github.com/doctrine/common/commit/3b42776ada70cf4161082c155f5d8ba9326ce674

        However here the relevant annotation is detected correctly in both cases.

        Closed.

        Show
        Benjamin Eberlei added a comment - Cannot reproduce, i have added a test-case that shows exactly the described code: http://github.com/doctrine/common/commit/3b42776ada70cf4161082c155f5d8ba9326ce674 However here the relevant annotation is detected correctly in both cases. Closed.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Václav Novotný
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: