DDC-1382: getIdentifierValues causes an exception on entyties that have only association keys #2002

doctrinebot opened this Issue Sep 19, 2011 · 2 comments

2 participants


Jira issue originally created by user goetas:

On entities that have only association keys as primary keys:

Calling BasicEntityPersister::exists() cause the invocation of ClassMetadata::getIdentifierValues() method.
This method returns associated entities as identifier values.
Then BasicEntityPersister::exists() tries to converts these objects to string, instead of searching their primary keys.

Some problems:

  • getIdentifierValues have not access to external world (only its class metadata and the current entity).
  • getIdentifierValues is uses in many places of doctrine

(sorry for my bad English)


Comment created by @guilhermeblanco:

Fixed in 2404286

It should be available in next release.


Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.1.3 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment