1
0
mirror of synced 2025-01-29 19:41:45 +03:00

Changed foreign_alias to foreignAlias

This commit is contained in:
Jonathan.Wage 2007-09-21 03:20:02 +00:00
parent e22ad5baae
commit 9c32fef9bf

View File

@ -142,7 +142,7 @@ class Doctrine_Import_Schema
$class = isset($relation['class']) ? $relation['class']:$alias;
$relation['foreign'] = isset($relation['foreign'])?$relation['foreign']:'id';
$relation['foreign_alias'] = isset($relation['alias'])?$relation['alias']:null;
$relation['foreignAlias'] = isset($relation['alias'])?$relation['alias']:null;
$relation['alias'] = $alias;
$relation['class'] = $class;
@ -164,7 +164,7 @@ class Doctrine_Import_Schema
$newRelation['foreign'] = $relation['local'];
$newRelation['local'] = $relation['foreign'];
$newRelation['class'] = $className;
$newRelation['alias'] = isset($relation['foreign_alias'])?$relation['foreign_alias']:$className;
$newRelation['alias'] = isset($relation['foreignAlias'])?$relation['foreignAlias']:$className;
$newRelation['type'] = $relation['type'] === Doctrine_Relation::ONE ? Doctrine_Relation::MANY:Doctrine_Relation::ONE;
$this->relations[$relation['class']][$className] = $newRelation;