Skip to content

Commit b5a3158

Browse files
author
Kévin Mathieu
committed
Hack when have array as id
1 parent 26048c8 commit b5a3158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Doctrine/Common/DataFixtures/ProxyReferenceRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function unserialize($serializedData)
7575
$name,
7676
$this->getManager()->getReference(
7777
$proxyReference[0], // entity class name
78-
$proxyReference[1] // identifiers
78+
is_array($proxyReference[1]) ? $proxyReference[1]['id'] : $proxyReference[1] // identifiers
7979
)
8080
);
8181
}

0 commit comments

Comments
 (0)