Permalink
Browse files

Merge pull request #142 from jaugustin/fix-m2m-admin-gen

[wip] fix admin gen m2m issue tableMap not found #139
  • Loading branch information...
2 parents c2036d0 + 443f47c commit b174232c30a2d0de4f230d8dfc6164ee8da08e78 @willdurand willdurand committed Jun 11, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/generator/sfPropelGenerator.class.php
@@ -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();
+ }
}
}

0 comments on commit b174232

Please sign in to comment.