Reverted my changes, fix generated SQL only if it makes sense.
This pull request passes (merged a948f3c8 into c4eb8ba).
I don't get it, I thought the problem appeared when you have multiuple primary keys? Your code doesn't test that.
The getPrimaryKeyDDL() method is only called if there is more than one PK: https://github.com/willdurand/Propel2/blob/a948f3c8ef62b020f980db447428d21af739f3c3/src/Propel/Generator/Platform/SqlitePlatform.php#L70
Then I'm all for the fix!
I don't like it actually; if you missed the point, this is probably because the method is not explicit enough (object calisthenics).
I will move the condition to this method. It will be safer.
Fix SQLitePlateform again
This pull request passes (merged c19bfc6 into eaeca74).