Uploaded image for project: 'Doctrine Common'
  1. Doctrine Common
  2. DCOM-87

Add a method to retrieve the identifier values in the Common interfaces


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


      Currently, https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Doctrine/Security/User/EntityUserProvider.php is tied to the ORM, forcing bundle integrating other Doctrine projects to reimplement it.

      The only place which is not (or cannot be) implemented using only methods from the Common interfaces is retrieving the current id. `getIdentifierValues` is now implemented by the ClassMetadata in all ORM, MongoDB and CouchDB but not in the interface.

      Note that the tricky point about adding it is the fact that the DisconnectedMetadataFactory (used when generating entities) returns a ClassMetadataInfo instead, which does not contain this method (as it relies on the existence of the class) but implements the interface.


        stof Christophe Coevoet created issue -
        beberlei Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        beberlei Benjamin Eberlei made changes -
        Workflow jira [ 13255 ] jira-feedback2 [ 17922 ]
        beberlei Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17922 ] jira-feedback3 [ 19885 ]


          • Assignee:
            beberlei Benjamin Eberlei
            stof Christophe Coevoet
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: