fixes #281
This commit is contained in:
parent
13cd323717
commit
9143270e06
@ -157,7 +157,8 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module implemen
|
||||
// ONE-TO-ONE relationship
|
||||
$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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user