Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.0.12
-
Fix Version/s: 1.2.0-BETA1
-
Component/s: Record
-
Labels:None
-
Environment:WIN XP
Description
In the method coreSetRelated from Record.php for 1-1 relation the table is not obtained correctly!
if ($value !== self::$_null)
{ $relatedTable = $value->getTable(); $foreignFieldName = $relatedTable->getFieldName($rel->getForeign()); }instead of
$relatedTable = $value->getTable();
you should put
$relatedTable = $rel->getTable();
This is a huge bug that can be fixed very easily so please fix is asap!
I can not deploy my project until this is fixed!
Thanks a lot!
I do not know if other versions are affected! I use symfony 1.2.9! Should I make a ticket also for Symfony!
You do a great job with doctrine! Great project! I really like it
This sounds like a bug in your own code. $value should be an instance of Doctrine_Record and it is not. Make sure you're code is not passing an array or invalid value through to coreSetRelated(). If you're using symfony, a common cause of this is that you have an embedded form that has the same name as your relationship. This can cause issues currently.