1
0
mirror of synced 2025-03-21 07:23:55 +03:00

Addresses issue of infinte function recursion when saving related objects. Fixes #363.

This commit is contained in:
subzero2000 2007-06-25 17:51:37 +00:00
parent a593d746c3
commit a795996efa

View File

@ -221,11 +221,15 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
} else {
// ONE-TO-ONE relationship
$obj = $record->get($rel->getAlias());
$obj->save($this->conn);
}
// Protection against infinite function recursion before attempting to save
if ($obj->isModified()) {
$obj->save($this->conn);
}
}
}
}
return $saveLater;
}
/**