Commit 3e6a352a authored by zYne's avatar zYne

Fixes #164

parent db433c84
......@@ -414,11 +414,11 @@ abstract class Doctrine_Hydrate extends Doctrine_Access {
$tmp = explode(".", $path);
$alias = end($tmp);
$fk = $this->tables[$pointer]->getRelation($alias);
if( ! isset($prev[$pointer]) )
return $prev;
$fk = $this->tables[$pointer]->getRelation($alias);
if( ! $fk->isOneToOne()) {
if($prev[$pointer]->getLast() instanceof Doctrine_Record) {
if( ! $prev[$pointer]->getLast()->hasReference($alias)) {
......
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