Commit 5d12093b authored by zYne's avatar zYne

--no commit message

--no commit message
parent 919ec714
...@@ -194,8 +194,8 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module ...@@ -194,8 +194,8 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
if ($record->hasReference($alias)) { if ($record->hasReference($alias)) {
$obj = $record->$alias; $obj = $record->$alias;
// check that the related object is either an instance of Doctrine_Record or an instance of Doctrine_Collection // check that the related object is not an instance of Doctrine_Null
if ($obj instanceof Doctrine_Record || $obj instanceof Doctrine_Collection) { if ( ! ($obj instanceof Doctrine_Null)) {
$obj->save($conn); $obj->save($conn);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment