You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling $account->Description = $sDescription it will call the __set method of class Model which will then call the isFillable method automatically to check if the given attribute is fillable. So it would not be necessary to call it outside of this instance.
It is possible to check the Account for the expected attributes after creating the instance. But in my opinion this would be overhead.
The
__call
method of classModel
(added in 8f4e812) prevents calling private methodisFillable
.Code example:
Is there a reason why
isFillable
shouldn't be accessible on an instance?Possible solutions to make the code example work again:
isFillable
in a public function, so it's call isn't handled by__call
.__call
test if$name
doesn't refer to a method, before handling it as a property.What's your opinion?
The text was updated successfully, but these errors were encountered: