-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Propose Moving Model::classToArray() method to Entity class as public method #579
Comments
I need to think on this one a little more. Here's my concerns:
|
What about making classToArray a static public method on the Model class instead? |
That, I think is doable. |
Fixed in 2d05e64 |
I've found it useful to be able for a model's entity class to return an array of the values being saved (e.g. for a toJson method on the Entity class). Currently the method that extracts that data is in the Model class but protected. I would like to suggest moving that method to the Entity class as public and have the Model class call it instead.
The text was updated successfully, but these errors were encountered: