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
[BUG]: Model::find() protected/private property access public #14766
Comments
@tidytrax Is this occurring with properties as private as well? |
Yes I tested now and private work also, same code above, but with private prop
|
@tidytrax thnx. We will have a look at it |
The bug occurs on Model::findFirst() also |
I wasn't able to reproduce this. Can you check the type of object you get from the result set?
|
Work's even with hydrate. |
Just a info, The Model extends an AbstractModel |
Like this?
|
Yes exactly . |
Will write some extra tests for this to see if we can reproduce this. Are you on Linux? |
Vagrant 2.2.6 VirtualBox 6.0.14 Ubuntu 19.10 |
Zephir issue has been fixed in #2078. I'll release new version ASAP |
Zephir 0.12.18 released: https://github.com/phalcon/zephir/releases/tag/0.12.18 |
Using get-set and protected property
Config
Phalcon 4.0.2 / PHP 7.4.2 / Postgresql 12.1/Nginx 1.16.1
The text was updated successfully, but these errors were encountered: