Details
-
Type:
New Feature
-
Status:
Reopened
-
Priority:
Trivial
-
Resolution: Unresolved
-
Affects Version/s: 2.0-BETA2
-
Fix Version/s: None
-
Component/s: ORM
-
Security Level: All
-
Labels:None
Description
I am getting an error: 'Notice: Undefined index: sysname in ./libraries/Doctrine/ORM/Persisters/BasicEntityPersister.php on line 434' when I try to flush a change to a property that references a unique field on another object.
From poking around in the _prepareUpdateData function, it seems that it only allows you to use identifier fields:
$newValId = $uow->getEntityIdentifier($newVal); .. $result[$owningTable][$sourceColumn] = $newValId[$targetClass->fieldNames[$targetColumn]];
I'll see if I can get a test case for this set up.
although we would also need this i would suggest adding an error message if the associated column is not found in $newValId. (class BasicEntityPersister.php _prepareUpdateData)
otherwise the field is populated with null leaving the developer debugging an hour :-/
thx