Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

4 participants

Jérémie Augustin Don't Add Me To Your Organization a.k.a The Travis Bot rozwell William Durand
Jérémie Augustin
Collaborator

hi,

This fix #139

I will add tests to prevent regression.

@rozwell could you test it ?

Don't Add Me To Your Organization a.k.a The Travis Bot

This pull request passes (merged 443f47c into c2036d0).

rozwell
Collaborator

Hello, I apologize for my lack of time...

Checked, works.

Thanks ;)

Jérémie Augustin
Collaborator

No I should apologize for the BC break ;)

rozwell
Collaborator

@jaugustin no worries, happens :)

Could this one be finally merged, please?

Jérémie Augustin
Collaborator

I work on it today (add tests)

William Durand willdurand merged commit b174232 into from
William Durand
Owner

Ok merged, we'll add tests later.

William Durand
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 29, 2012
  1. Jérémie Augustin
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/generator/sfPropelGenerator.class.php
4 lib/generator/sfPropelGenerator.class.php
View
@@ -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();
+ }
}
}
Something went wrong with that request. Please try again.