-
Notifications
You must be signed in to change notification settings - Fork 178
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
[FEATURE] DBAL 3 #541
[FEATURE] DBAL 3 #541
Conversation
Any reason you did no start with #520 ?? |
@dpslwk Didn't see it! I'll have a look at it now. |
Working on converting the caches over, marked as draft for now. |
|
Yeah, to be more precise, the new PrimaryReadReplica was already supported in Laravel Doctrine, but it also supported the old MasterSlaveConnection for backwards compatibility. This has now been completely removed from DBAL 3: https://github.com/doctrine/dbal/blob/3.5.x/UPGRADE.md#removed-masterslaveconnection |
Codecov ReportBase: 53.56% // Head: 57.94% // Increases project coverage by
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## 2.0 #541 +/- ##
============================================
+ Coverage 53.56% 57.94% +4.37%
+ Complexity 828 660 -168
============================================
Files 101 92 -9
Lines 2662 2197 -465
============================================
- Hits 1426 1273 -153
+ Misses 1236 924 -312
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Using this branch within my application and all seems to be good - ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to look OK to me, just need to test it a bit 👍🏻
Could you add an |
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mention of void
cache can be removed from config file.
Did some research into the
Basically the namespace support doesn't seem to have any effect at all. The entities doesn't need to be in any of the namespaces. |
@keithbrink I merged 1.7 into 1.8 and noticed the cs-fixer things was already handled there. Sorry about that 🤦🏻♂️ |
@eigan No problem, I rebased on 1.8. |
@keithbrink Thank you! This is a good starting point for 2.0. Going to update the other laravel-doctrine packages to allow this version soon. Will try to get this out to our staging env tomorrow, then production next friday. |
@eigan Thanks for getting this across the finish line! |
Following on the work of #519 and #520, I went through the code to fix all the breaking changes related to DBAL 3, as well as some deprecations that came up.
I would prefer to target a new 2.0 branch with this, since there are many breaking changes.
json_array
type has been removed in DBAL 3.create
method on the EntityManager: DeprecateEntityManager::create()
doctrine/orm#9961