1
0
mirror of synced 2025-02-09 08:49:26 +03:00

#6284 removing the "WTF" part of the logic - an association cache entry should never ever reach metadata

This commit is contained in:
Marco Pivetta 2017-08-22 21:03:14 +02:00
parent 309b286ed3
commit a8453dda89
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -715,6 +715,9 @@ class ClassMetadataInfo implements ClassMetadata
*/
public function getIdentifierValues($entity)
{
if ($entity instanceof AssociationCacheEntry) {
throw new \InvalidArgumentException('WTF DUDE: ' . $entity->class . ' - ' . \serialize($entity->identifier));
}
if ($this->isIdentifierComposite) {
$id = [];