We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c453c29 commit dff65dfCopy full SHA for dff65df
Doctrine/OptimizedDataLoader.php
@@ -88,6 +88,9 @@ protected function sortEntitiesByValueClass($entities)
88
if (!$entity instanceof DataInterface) {
89
throw new \InvalidArgumentException(self::E_MSG);
90
}
91
+ if (null === $entity->getId()) {
92
+ continue;
93
+ }
94
$entitiesByValueClassByIds[$entity->getFamily()->getValueClass()][$entity->getId()] = $entity;
95
96
0 commit comments