#6284 removing the "WTF" part of the logic - an association cache entry should never ever reach metadata
This commit is contained in:
parent
309b286ed3
commit
a8453dda89
@ -715,6 +715,9 @@ class ClassMetadataInfo implements ClassMetadata
|
|||||||
*/
|
*/
|
||||||
public function getIdentifierValues($entity)
|
public function getIdentifierValues($entity)
|
||||||
{
|
{
|
||||||
|
if ($entity instanceof AssociationCacheEntry) {
|
||||||
|
throw new \InvalidArgumentException('WTF DUDE: ' . $entity->class . ' - ' . \serialize($entity->identifier));
|
||||||
|
}
|
||||||
if ($this->isIdentifierComposite) {
|
if ($this->isIdentifierComposite) {
|
||||||
$id = [];
|
$id = [];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user