Switched foreign key in many-to-many of UserRole and GroupRole in ORM designer schema so propel has correct order for schema. If pk's and fk's don't have same order in Propel for crossref table the generated code will fail.