Skip to content

Commit

Permalink
Fixed purging for Doctrine 2.4 and lower.
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeblanco authored and lavoiesl committed Mar 23, 2015
1 parent 8e86364 commit 64dfaae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Common/DataFixtures/Purger/ORMPurger.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function purge()
$metadatas = $this->em->getMetadataFactory()->getAllMetadata();

foreach ($metadatas as $metadata) {
if (! $metadata->isMappedSuperclass && ! $metadata->isEmbeddedClass) {
if (! $metadata->isMappedSuperclass && ! (isset($metadata->isEmbeddedClass) && $metadata->isEmbeddedClass)) {
$classes[] = $metadata;
}
}
Expand Down

0 comments on commit 64dfaae

Please sign in to comment.