fix admin gen m2m issue tableMap not found #139 #142

Merged
merged 1 commit into from Jun 11, 2012
View
4 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();
+ }
}
}