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

        Benjamin Eberlei created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 12782 ] jira-feedback [ 13942 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13942 ] jira-feedback2 [ 15806 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15806 ] jira-feedback3 [ 18062 ]
        Fabio B. Silva made changes -
        Assignee Benjamin Eberlei [ beberlei ] Fabio B. Silva [ fabio.bat.silva ]
        Fabio B. Silva made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Show
        Fabio B. Silva added a comment - fixed : https://github.com/doctrine/doctrine2/commit/71a68a5c6fcd49538c3ef2f86d64bcde1958251c
        Fabio B. Silva made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 2.4 [ 10321 ]
        Fix Version/s 2.x [ 10090 ]
        Resolution Fixed [ 1 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1245, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: