1
0
mirror of synced 2024-12-13 22:56:04 +03:00
This commit is contained in:
subzero2000 2007-03-07 23:08:17 +00:00
parent 13cd323717
commit 9143270e06

View File

@ -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);
}
}