Commit 9143270e authored by subzero2000's avatar subzero2000

fixes #281

parent 13cd3237
...@@ -157,7 +157,8 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module implemen ...@@ -157,7 +157,8 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module implemen
// ONE-TO-ONE relationship // ONE-TO-ONE relationship
$obj = $record->get($fk->getAlias()); $obj = $record->get($fk->getAlias());
if ($obj->state() != Doctrine_Record::STATE_TCLEAN) { $state = $obj->state();
if ( !($state == Doctrine_Record::STATE_CLEAN || $state == Doctrine_Record::STATE_TCLEAN) ) {
$obj->save($this->conn); $obj->save($this->conn);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment