Commit 031b2ba7 authored by subzero2000's avatar subzero2000

Added check to ensure a foreign object is actually a Doctrine_Record before calling isModified.

parent c5fc1228
......@@ -265,7 +265,8 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
$obj = $record->get($rel->getAlias());
// Protection against infinite function recursion before attempting to save
if ($obj->isModified()) {
if ($obj instanceof Doctrine_Record &&
$obj->isModified()) {
$obj->save($this->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