1
0
Fork 0
mirror of synced 2025-03-30 03:30:13 +03:00

Added example code.

This commit is contained in:
Jonathan.Wage 2007-09-17 21:32:40 +00:00
parent f3bdcb9118
commit 78f8aea897

View file

@ -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) {
}
}
}
}