-
Notifications
You must be signed in to change notification settings - Fork 10
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
Cake 4.x EntityTrait _properties changed to _fields #24
Cake 4.x EntityTrait _properties changed to _fields #24
Conversation
Fixed that unit test warning I mentioned earlier. All passing green now! |
Thanks for the PR, much appreciated! I'll get travis working again (it got turned off somehow) and tag this ASAP. |
Codecov Report
@@ Coverage Diff @@
## master #24 +/- ##
=======================================
Coverage 100% 100%
Complexity 18 18
=======================================
Files 1 1
Lines 44 44
=======================================
Hits 44 44
Continue to review full report at Codecov.
|
@KainGNX released: https://github.com/jeremyharris/cakephp-lazyload/releases/tag/4.0.0 Thanks again for the legwork :) |
You're welcome! Glad I could help! :D |
Been going through a tedious 3.x to 4.x upgrade, and came across this change.
The
EntityTrait::$_properties
has now becomeEntityTrait::$_fields
https://api.cakephp.org/3.8/source-class-Cake.Datasource.EntityTrait.html#29-34
https://github.com/cakephp/cakephp/blob/master/src/Datasource/EntityTrait.php#L37
My unit tests relying on lazy-loading appear to be passing now. Just thought I'd share to help everyone out. :)
PS: I would pick a dev branch if I could.