Skip to content

Commit

Permalink
Avoid fatal error when updating other entities.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterlozano authored and kayue committed Oct 20, 2017
1 parent 05c62da commit 8d23f9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Subscriber/TablePrefixSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public function loadClassMetadata(LoadClassMetadataEventArgs $args)
{
$classMetadata = $args->getClassMetadata();

if (!$classMetadata->getReflectionClass()) {
return;
}

// Get class annotations
$classAnnotations = $this->annotatonReader->getClassAnnotations($classMetadata->getReflectionClass());

Expand Down

0 comments on commit 8d23f9e

Please sign in to comment.