Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1245

Check if Entity implements EventSubscriber to allow access to EM

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      There is often the feature request that the EM should be accessible in entities when events are triggered.

      We should allow entities or repositories to implement EventSubscriber and trigger events accordingly, or find some other scheme to do so.

      Currently event subscribers are called for ALL entities, this could lead to a performance increase when only triggering listeners for entities that need them.

        Activity

          People

          • Assignee:
            Fabio B. Silva
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: