-
Notifications
You must be signed in to change notification settings - Fork 52
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
Hidden attributes #3
Comments
I agree this is a very uselful feature, but as these methods are on the entity itself (toArray(), toJson, etc...), wouldn't it make more sense for the hidden attribute to be defined on the Entity class, than on the EntityMap ? |
@RemiCollin, not sure. I thought that maybe the EntityMap is responsible for configuring the Entity and the Entity itself is just a simple shell for the data, just like all relationships are also defined on the EntityMap and not the Entity itself. |
Also because the EntityMap class already has a hidden attribute and a |
Yes it's a remain of a previous iteration, it's not implemented. Will have a look to see how it can be achieved. |
Supported in Version 2.1 : Base Entity class now supports hidden attributes |
Would be nice to hide attributes (similar to what Eloquent does) by setting a
$hidden
attribute on the EntityMap, which prevents certain methods to provide those hidden attributes.The text was updated successfully, but these errors were encountered: