Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1852

Doctrine\ORM\Tools\SchemaValidator should check validity of lifecycle callbacks

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Git Master
    • Fix Version/s: 2.x, 2.5
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      The schema validator should analyze mapped lifecycle callbacks and:

      a) if some lifecycle callbacks were defined, but no @HasLifecycleCallbacks annotation/mapping was set, warn the user
      b) if some lifecycle callbacks were defined, but methods are not public, warn the user

        Activity

        Hide
        Marco Pivetta added a comment -
        Show
        Marco Pivetta added a comment - Existing PR at https://github.com/doctrine/doctrine2/pull/361

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Marco Pivetta
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: