Closed vol4onok closed 3 months ago
@vol4onok thanks for coming back to this long lasting PR!
@PhilinTv It was taken here https://github.com/propelorm/Propel2/pull/1559. I covered this improvement. I needed to understand what this fix does In tests everything is clear. This fix didn't work for example in desription. There are 2 cases. But it's an optional feature and can be released.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 89.28%. Comparing base (
1ca6543
) to head (2f29c23
). Report is 7 commits behind head on master.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hi guys,
Not sure what was the reason for the change, but in Propel1 it was not mandatory to make the crossref table foreign keys also primary keys. It was handy when the crossref table relation had to be referenced further elsewhere.
I don't see any negative effects enabling this, but please correct me if I'm wrong.
Here is a pseudo-example:
https://github.com/propelorm/Propel2/pull/1559