Welcome Guest, Not a member yet? Register   Sign In
Entity - allowedFields inconsistancy
#3

(08-29-2021, 04:39 PM)ojmichael Wrote: I don't think entities have an allowedFields property.
Thank you, sometimes the most simple answer is the best.

Despite what I typed in my question I actually had my entity setup with:
Code:
protected $attributes = ['field1'=>NULL,'field2'=>NULL,'field3'=>NULL];
Instead of:
Code:
protected $allowedFields = ['field1'=>NULL,'field2'=>NULL,'field3'=>NULL];
I tried the Entity using $allowedFields instead of $attributes and yeah it doesn't work.

So not a bug. However I think this is a useful piece of functionality so might raise it. Indeed where an entity is defined then the model should look to the entity to see what is allowed.

Thanks for your help.
Reply


Messages In This Thread
RE: Entity - allowedFields inconsistancy - by maximusto - 08-29-2021, 05:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB