-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix incorrect handling of transactions using deferred constraints #7556
base: 2.10.x
Are you sure you want to change the base?
Conversation
Build will fail until we merge the DBAL changes. You can see successful build here https://travis-ci.org/grongor/doctrine2/builds/475297482 (it uses patched DBAL from here doctrine/dbal#3424 ) |
This looks like a much better approach than the one we discussed before: nice! |
Assuming doctrine/dbal#3424 can target /cc @doctrine/doctrinecore? |
Shouldn't this be merged into older versions too, as this fixes a bug and is non-BC? Just saying ... I'm not familiar with your release schedules :) |
Can't merge in older versions due to the dependency bump, and dependency bumps are off-limits for patch releases, unless it's a security issue. |
This is quite good for 2.7.0 just needs a rebase and the dependency bump on DBAL. |
@grongor @Ocramius I was wrong in my statement, DBAL still needs to be adjusted. After talking to @morozov we've decided to pursue a simpler solution than the one proposed in doctrine/dbal#3424 (basically a However, DBAL 2.9 isn't maintained any longer and 2.10 requires PHP 7.2. Since we want to have ORM 2.7.0 out ASAP due to SF5 support I'll push this to ORM 2.8.0. I hope you understand my decision ❤️ |
@lcobucci is this superseded by doctrine/dbal#3424? |
@simPod it's been a while but that's correct. The challenge is to find a cross-platform implementation (that's well tested). |
e531738
to
66c95a6
Compare
There hasn't been any activity on this pull request in the past 90 days, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days. |
Fixed in doctrine/dbal#6545 |
Summary
Rollback called when outside of a transaction when using deferred constraints (PostgreSQL).
(I wasn't sure what branch to target, please tell me if I should change it :) Thanks )