Permalink
Browse files

Fixes many-to-many joins in auto-generated filter forms

  • Loading branch information...
1 parent 08418e3 commit 65e8a7aa88aab05e24ef29fbfe3a3af62cb1bbe9 19Gerhard85 committed Jun 13, 2013
@@ -56,7 +56,7 @@ public function add<?php echo $tables['middleTable']->getPhpName() ?>ListColumnC
return;
}
- $criteria->addJoin(<?php echo $middleTablePeerName ?>::<?php echo $columnPeerName ?>, <?php echo $this->table->getPeerClassname() ?>::<?php echo $pkPeerName ?>);
+ $criteria->addJoin(<?php echo $this->table->getPeerClassname() ?>::<?php echo $pkPeerName ?>, <?php echo $middleTablePeerName ?>::<?php echo $columnPeerName ?>);
$value = array_pop($values);
$criterion = $criteria->getNewCriterion(<?php echo $middleTablePeerName ?>::<?php echo $relatedColumnPeerName ?>, $value);

0 comments on commit 65e8a7a

Please sign in to comment.