Skip to content

Commit

Permalink
Merge 911d50e into de549eb
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemben committed Jan 24, 2020
2 parents de549eb + 911d50e commit d24700d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Model/ModelManager.php
Expand Up @@ -278,7 +278,11 @@ public function getNormalizedIdentifier($document)
if (is_scalar($document)) {
throw new \RunTimeException('Invalid argument, object or null required');
}


// not managed
if(!$this->registry->getManagerForClass(\get_class($document))){
return;
}
// the entities is not managed
if (!$document || !$this->getDocumentManager($document)->getUnitOfWork()->isInIdentityMap($document)) {
return;
Expand Down

0 comments on commit d24700d

Please sign in to comment.