Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1178

Have access to "original" metadata in events subscribed to loadClassMetadata

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.x
    • Fix Version/s: 2.x
    • Component/s: Mapping Drivers
    • Security Level: All
    • Labels:
      None

      Description

      If you subscribe to loadClassMetadata you will usually modify the metadata for some classes.
      The problem is, that that data has to be loaded from somewhere. But later down the chain you can't get to it. Now data specific to what you need in your loadClassMetadata would ideally reside in the same location.
      If we take for example a file, than all data for a specific entity is in the same file.

      My proposal would be to add function get(Original|Raw)MappingData into interface Doctrine\ORM\Mapping\Driver\Driver which would either return raw data or data in a object specific for that Driver or null if it doesn't make sense for that driver. Please note, that when loading from e.g XmlDriver we should return simplexmlnode or dom node as loadClassMetadata should be in its own namespace and not pollute the Doctrine one.

        Activity

        Miha Vrhovnik created issue -
        Hide
        Gediminas Morkevicius added a comment -

        Sounds logic, each driver would expect NULL or data (wrapped specifically for the driver used)

        Show
        Gediminas Morkevicius added a comment - Sounds logic, each driver would expect NULL or data (wrapped specifically for the driver used)
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 12676 ] jira-feedback [ 13929 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13929 ] jira-feedback2 [ 15793 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15793 ] jira-feedback3 [ 18050 ]

        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-1178, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Miha Vrhovnik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: