-
-
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
[BUG]: Form with field that is not part of the Model raised deprecated warning on bind() #16567
Labels
Comments
https://github.com/phalcon/cphalcon/blob/master/phalcon/Forms/Form.zep#L257 I think a There is also a better way to only allow public properties: https://www.php.net/manual/de/function.property-exists.php#129001 |
noone-silent
added a commit
to noone-silent/cphalcon
that referenced
this issue
May 1, 2024
…ng properties on entities when bind is executed. refactor: added new ini setting phalcon.form.strict_entity_property_check with default value of 0
5 tasks
noone-silent
added a commit
to noone-silent/cphalcon
that referenced
this issue
May 1, 2024
niden
added a commit
that referenced
this issue
May 1, 2024
…roperty-check [#16567] - Fix for Form::bind deprecated warnings.
niden
added
status: medium
Medium
5.0
The issues we want to solve in the 5.0 release
and removed
status: unverified
Unverified
labels
May 1, 2024
Resolved in #16575 Thank you again @noone-silent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
If you have a form with a field, that is not part of the model you bind the form to, the form will dynamically add the field to the model, which raises a deprecated warning.
Deprecated: Creation of dynamic property Model::$attribute is deprecated
To Reproduce
Expected behavior
Form should only fill fields that are part of the entity using model metadata only. If there is not metadata then use reflection.
Screenshots
Details
Additional context
The text was updated successfully, but these errors were encountered: