Permalink
Browse files

partial keys

  • Loading branch information...
1 parent 0a7e471 commit 3a9fb802a67a522621dfc7a992250cbb9a1852cd Project committed May 4, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Doctrine/ORM/UnitOfWork.php
@@ -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;
+ }
}
}

0 comments on commit 3a9fb80

Please sign in to comment.