1
0
mirror of synced 2024-12-14 15:16:04 +03:00
This commit is contained in:
zYne 2007-09-19 14:59:06 +00:00
parent e7e32c4602
commit 2bb8b7083f

View File

@ -193,7 +193,11 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
if ($record->hasReference($alias)) { if ($record->hasReference($alias)) {
$obj = $record->$alias; $obj = $record->$alias;
$obj->save($conn);
// check that the related object is not Doctrine_Null
if ($obj instanceof Doctrine_Record) {
$obj->save($conn);
}
} }
} }