Commit 2bb8b708 authored by zYne's avatar zYne

--no commit message

--no commit message
parent e7e32c46
......@@ -193,7 +193,11 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
if ($record->hasReference($alias)) {
$obj = $record->$alias;
$obj->save($conn);
// check that the related object is not Doctrine_Null
if ($obj instanceof Doctrine_Record) {
$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