Welcome Guest, Not a member yet? Register   Sign In
How to clean Entity fields before saving
#8

I always have $protectFields = true;. I don't see it as wasting time because a) it only takes a couple of minutes in most cases, and b) you have to specify that at some point. You're either filling out the $allowedFields and passing bulk data in, or you're specifying which fields from the request you want to pass into, ensuring to select only the fields you want.
Reply


Messages In This Thread
RE: How to clean Entity fields before saving - by kilishan - 12-22-2021, 07:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB