Fixes for auto completing relationships.
This commit is contained in:
parent
8cc2c977f0
commit
3c6eb60037
@ -241,13 +241,15 @@ class Doctrine_Import_Schema
|
|||||||
|
|
||||||
if( isset($this->relations[$relation['class']]) && is_array($this->relations[$relation['class']]) ) {
|
if( isset($this->relations[$relation['class']]) && is_array($this->relations[$relation['class']]) ) {
|
||||||
foreach($this->relations[$relation['class']] as $otherRelation) {
|
foreach($this->relations[$relation['class']] as $otherRelation) {
|
||||||
if(isset($otherRelation['refClass']) && $otherRelation['refClass']==$className) // skip fully defined m2m relationships
|
// skip fully defined m2m relationships
|
||||||
return;
|
if(isset($otherRelation['refClass']) && $otherRelation['refClass'] == $className) {
|
||||||
|
continue(2);
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$this->relations[$relation['class']][$className] = $newRelation;
|
$this->relations[$relation['class']][$className] = $newRelation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user