-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[2.0.x] Mvc/Model: Setter fallback #10391
[2.0.x] Mvc/Model: Setter fallback #10391
Conversation
@brainformatik Can you please provide a small test? In any case 👍 |
👍 |
Added a few tests |
Fine! 👍 |
I would like to see this one in Collection too. By the way I would like to see some "entity" behaviours interfaces in both, collections and models. As well a ResultSet kind of data for both, Models resultsets and ODM multiple results. And, it would be really great to have magic getters too. For example, a toArray call will use the getters if they are defined and returns the value according to object domain logic. #2027 |
What's the status on this? |
Similar issue: #3033 |
@brainformatik Can you please rebase onto |
Add setter fallback in "__set" magic.
This is useful if you use protected (private) properties and assign a value directly to a property.
If this property has setter/getter functions they will be called preferably.