Permalink
Browse files

[wip] fix admin gen m2m issue tableMap not found #139

  • Loading branch information...
1 parent c2036d0 commit 443f47ce77afe2e15545cb23aad08625d2fcfb30 @jaugustin jaugustin committed May 29, 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 443f47c

Please sign in to comment.