Skip to content

Commit

Permalink
partial keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Project committed May 4, 2012
1 parent 0a7e471 commit 3a9fb80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Doctrine/ORM/UnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -2401,6 +2401,11 @@ public function createEntity($className, array $data, &$hints = array())
} else {
$associatedId[$targetClass->fieldNames[$targetColumn]] = $joinColumnValue;
}
}else{
if(count($assoc['targetToSourceKeyColumns'])>1){
$associatedId = array();
break;
}
}
}

Expand Down

0 comments on commit 3a9fb80

Please sign in to comment.