-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 with TimestampableEntity trait fails on PUT operation #2737
Comments
It works with |
i have the same issue, did you solve? |
The same thing happens to me. Has anyone discovered the solution? |
There is nothing in this package behaving differently based on the HTTP request method. The |
Even adding the "Group" attribute so that it is not received by the "PUT" method, the created_at field is changed to null |
If your entity has a setter for that field (which if you're using the |
I'm on a fresh install of API Platform (v3.2.7) and I'm using
TimestampableEntity
This is my entity (Greeting example)
and my config/services.yaml
It woks fine on
POST
operation, but it fails when doing aPUT
. I get this errorThe versions I'm using are: symfony 6.4.1, doctrine 2.12, gedmo 3.14
The text was updated successfully, but these errors were encountered: