Skip to content
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

Merged

Conversation

jason-horvath
Copy link

Been going through a tedious 3.x to 4.x upgrade, and came across this change.

The EntityTrait::$_properties has now become EntityTrait::$_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.

@jason-horvath
Copy link
Author

Fixed that unit test warning I mentioned earlier. All passing green now!

@jeremyharris
Copy link
Owner

Thanks for the PR, much appreciated!

I'll get travis working again (it got turned off somehow) and tag this ASAP.

@codecov-io
Copy link

Codecov Report

Merging #24 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##             master    #24   +/-   ##
=======================================
  Coverage       100%   100%           
  Complexity       18     18           
=======================================
  Files             1      1           
  Lines            44     44           
=======================================
  Hits             44     44
Impacted Files Coverage Δ Complexity Δ
src/ORM/LazyLoadEntityTrait.php 100% <100%> (ø) 18 <4> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c4298a...202bce1. Read the comment docs.

@jeremyharris jeremyharris merged commit 32c6e73 into jeremyharris:master Feb 20, 2020
@jeremyharris
Copy link
Owner

@KainGNX released: https://github.com/jeremyharris/cakephp-lazyload/releases/tag/4.0.0

Thanks again for the legwork :)

@jason-horvath
Copy link
Author

You're welcome! Glad I could help! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants