-
-
Notifications
You must be signed in to change notification settings - Fork 946
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
Trait support #1358
Comments
You need to set groups inside Trait on createdAt and updatedAt properties. Remove Groups on use trait statement. That's the way I use it :-) |
Yeah after I posted this and was trying to sleep I thought about this, but wasn't sure if it could access groups outside of the same class, guess it can, let me try! Edit: seems it works like this, thanks will close the issue. |
Or you could add this to your User entity:
|
Description
I use the Gedmo Timestampeable trait in my entities, and would love to expose the createdAt and updatedAt fields by the normalizationContext.
Example
The text was updated successfully, but these errors were encountered: