Object of class DateTime could not be converted to string #46333
Unanswered
Elmatbaisaad
asked this question in
Symfony Book: The Fast Track
Replies: 1 comment 2 replies
-
This has nothing to do with Symfony (Doctrine is a separate project). and this is a documented limitation of Doctrine: https://www.doctrine-project.org/projects/doctrine-orm/en/2.11/tutorials/composite-primary-keys.html#primitive-types-only |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyOne
I have a history entity that has as attribute datetime , value , and register_id
the datetime and register_id are composite primary key
when i want to persist an object history i keep get Object of class DateTime could not be converted to string
Beta Was this translation helpful? Give feedback.
All reactions