Welcome Guest, Not a member yet? Register   Sign In
allowedFields in class
#2

(05-20-2020, 09:48 AM)pws Wrote: Hello,
in my db i have table with more than 40 fields, how i can set allowedFields array to accept all fileds without i write it one by one!
or if is possible if have other params of class just to set not allowed fields?!

please can help me?

This is one of my complaints against version 4. I have a table with 55 fields, actually a table of movies. For various reasons I have these fields in a form, again in the model and, finally, in the controller, remembering that the absence of a single field or even a typo, the information will be stored incomplete. In version 3 in addition to the form only in the model that returns to the controller for validation when applicable, remembering that typos cancel the process, not updating or inserting, that is, if the field is, for example, "ind" and you put "nid" the process is suspended, in version 4 if this occurs in the model, allowed fields, the field is simply ignored and the process continues, I believe it is a bug, I haven't had the opportunity to fully test it.
I managed to upgrade my entire site from version 3 to version 4, but without a doubt this part took a considerable amount of time.
Reply


Messages In This Thread
allowedFields in class - by pws - 05-20-2020, 09:48 AM
RE: allowedFields in class - by wdeda - 05-20-2020, 12:20 PM
RE: allowedFields in class - by jreklund - 05-21-2020, 02:47 AM
RE: allowedFields in class - by wdeda - 05-21-2020, 05:44 AM
RE: allowedFields in class - by jreklund - 05-21-2020, 07:42 AM
RE: allowedFields in class - by wdeda - 05-21-2020, 04:12 PM
RE: allowedFields in class - by jreklund - 05-23-2020, 02:40 AM
RE: allowedFields in class - by wdeda - 05-23-2020, 08:42 PM
RE: allowedFields in class - by pws - 06-05-2020, 08:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB