Skip to content

Commit

Permalink
put other testEntities into the bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
pscheit committed Oct 9, 2013
1 parent 34bcc14 commit 81fde36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
9 changes: 6 additions & 3 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@
$container->initErrorHandlers();

$doctrine = $container->bootstrapModule('Doctrine');
$ecmd = $doctrine->registerEntityClassesMetadataDriver()->getEntityClassesMetadataDriver();
$ecmd->addClass('Psc\Doctrine\TestEntities\Tag');
$ecmd->addClass('Psc\Doctrine\TestEntities\Article');
$doctrine->registerEntityClassesMetadataDriver()->getEntityClassesMetadataDriver()
->addClass('Psc\Doctrine\TestEntities\Tag')
->addClass('Psc\Doctrine\TestEntities\Article')
->addClass('Psc\Doctrine\TestEntities\Category')
->addClass('Psc\Doctrine\TestEntities\Person')
;

$container->bootstrapModule('PHPExcel');
$container->bootstrapModuleIfExists('Imagine');
Expand Down
1 change: 0 additions & 1 deletion lib/Psc/Doctrine/TestEntities/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ public function getEntityName() {
return 'Psc\Doctrine\TestEntities\Category';
}
}
?>
1 change: 0 additions & 1 deletion lib/Psc/Doctrine/TestEntities/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ public function getEntityName() {
return 'Psc\Doctrine\TestEntities\Person';
}
}
?>

0 comments on commit 81fde36

Please sign in to comment.