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

same model field & applied property key behavior #2

Open
iVovolk opened this issue May 26, 2016 · 1 comment
Open

same model field & applied property key behavior #2

iVovolk opened this issue May 26, 2016 · 1 comment

Comments

@iVovolk
Copy link
Contributor

iVovolk commented May 26, 2016

What if model with properties has $name field and property applied to this model has name key?
What we should get using $model->name ?

@bethrezen
Copy link
Member

That's the end-user problem. The only one we can help with is validating before property is created.
As we don't know what models will be using such properties - we can validate on binding property to exact model.
The good solution is to keep original model attribute value received on such calls. I believe that's the current behavior as model getters and helper-functions should be always called first.

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

No branches or pull requests

2 participants