-
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
Entity _options dates #1061
Comments
That's because you're overwriting the entire $_options array, and not providing the default values it expects to be there. |
I know what is causing this error but you should prevent it if in the documentation there is the example like this: class User extends Entity
} or just change the docs :) /sorry there is no way to format code in this form from mobile device. |
Just changing the docs is the way to go here :) |
When I am trying to add $_options = ['cast' => []]; to one of my class which contains entity and additionally I don't wanna define dates configuration... CI is returning an exception and made me to define it (dates cfg for entity):
Type: ErrorException Message: Undefined index: dates Filename: /home/zdamy/site/system/Entity.php Line Number: 176
(I am a huge fan of writing CLI application but I am sure the same is happening during normal requests).
The text was updated successfully, but these errors were encountered: