From 5d12093b8e290af0ab7a230fbcd08065a8cdbbc2 Mon Sep 17 00:00:00 2001 From: zYne Date: Wed, 19 Sep 2007 18:58:45 +0000 Subject: [PATCH] --- lib/Doctrine/Connection/UnitOfWork.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Connection/UnitOfWork.php b/lib/Doctrine/Connection/UnitOfWork.php index 58f8f9ae2..dd2be08b9 100644 --- a/lib/Doctrine/Connection/UnitOfWork.php +++ b/lib/Doctrine/Connection/UnitOfWork.php @@ -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); } }