Skip to content

Commit

Permalink
#6284 removing the "WTF" part of the logic - an association cache ent…
Browse files Browse the repository at this point in the history
…ry should never ever reach metadata
  • Loading branch information
Ocramius committed Aug 22, 2017
1 parent 309b286 commit a8453dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,9 @@ public function getSingleIdReflectionProperty()
*/
public function getIdentifierValues($entity)
{
if ($entity instanceof AssociationCacheEntry) {
throw new \InvalidArgumentException('WTF DUDE: ' . $entity->class . ' - ' . \serialize($entity->identifier));
}
if ($this->isIdentifierComposite) {
$id = [];

Expand Down

0 comments on commit a8453dd

Please sign in to comment.