1
0
mirror of synced 2025-03-04 20:03:21 +03:00
This commit is contained in:
zYne 2007-09-19 18:58:45 +00:00
parent 919ec7141c
commit 5d12093b8e

View File

@ -194,8 +194,8 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
if ($record->hasReference($alias)) {
$obj = $record->$alias;
// check that the related object is either an instance of Doctrine_Record or an instance of Doctrine_Collection
if ($obj instanceof Doctrine_Record || $obj instanceof Doctrine_Collection) {
// check that the related object is not an instance of Doctrine_Null
if ( ! ($obj instanceof Doctrine_Null)) {
$obj->save($conn);
}
}