Skip to content

Commit

Permalink
[DoctrineBundle] Updated data:load command to work with Doctrine2 BETA3
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Turner authored and fabpot committed Aug 25, 2010
1 parent a432417 commit 271b963
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -166,8 +166,8 @@ protected function getCommitOrder(EntityManager $em, array $classes)
$calc->addClass($class);

foreach ($class->associationMappings as $assoc) {
if ($assoc->isOwningSide) {
$targetClass = $em->getClassMetadata($assoc->targetEntityName);
if ($assoc['isOwningSide']) {
$targetClass = $em->getClassMetadata($assoc['targetEntity']);

if ( ! $calc->hasClass($targetClass->name)) {
$calc->addClass($targetClass);
Expand Down

0 comments on commit 271b963

Please sign in to comment.