Skip to content

Commit

Permalink
[wip] fix admin gen m2m issue tableMap not found #139
Browse files Browse the repository at this point in the history
  • Loading branch information
jaugustin committed May 29, 2012
1 parent c2036d0 commit 443f47c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/generator/sfPropelGenerator.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ protected function loadMapBuilderClasses()
// and all tables related to the related table maps (for m2m relations)
foreach ($this->tableMap->getRelations() as $relation)
{
$relation->getForeignTable()->getRelations();
foreach ($relation->getForeignTable()->getRelations() as $relationN) {
$relationN->getLocalTable()->getRelations();
}
}
}

Expand Down

0 comments on commit 443f47c

Please sign in to comment.