Added example code.
This commit is contained in:
parent
f3bdcb9118
commit
78f8aea897
1 changed files with 8 additions and 1 deletions
|
@ -103,7 +103,7 @@ abstract class Doctrine_Import_Schema
|
|||
|
||||
public function buildRelationships($array)
|
||||
{
|
||||
foreach($array as $name => $properties) {
|
||||
foreach ($array as $name => $properties) {
|
||||
$className = $properties['className'];
|
||||
$relations = $properties['relations'];
|
||||
|
||||
|
@ -116,5 +116,12 @@ abstract class Doctrine_Import_Schema
|
|||
$this->relations[$className][$class] = $relation;
|
||||
}
|
||||
}
|
||||
|
||||
// Fix the other end of the relations
|
||||
foreach($this->relations as $className => $relations) {
|
||||
foreach ($relations AS $alias => $relation) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue