Skip to content

Commit

Permalink
Merge pull request symfony-cmf#380 from nlzet/fix-condition-column
Browse files Browse the repository at this point in the history
Fix an issue where $condition columns are mapped on every entity during doctrine:generate:entities
  • Loading branch information
dbu authored Jan 10, 2017
2 parents 5370c4e + 0825e5d commit 6c447bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Doctrine/RouteConditionMetadataListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs)

$meta = $eventArgs->getClassMetadata();
$refl = $meta->getReflectionClass();
if (null !== $refl && 'Symfony\Component\Routing\Route' !== $refl->getName()) {
if (null === $refl || 'Symfony\Component\Routing\Route' !== $refl->getName()) {
return;
}

Expand Down

0 comments on commit 6c447bf

Please sign in to comment.