Skip to content

Commit

Permalink
Don't try to purge embedded classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Rodrigues authored and lavoiesl committed Mar 23, 2015
1 parent 2f180a4 commit 8e86364
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) {
if (! $metadata->isMappedSuperclass && ! $metadata->isEmbeddedClass) {
$classes[] = $metadata;
}
}
Expand Down

0 comments on commit 8e86364

Please sign in to comment.