Problem "The EntityManager is closed."
toto
-
toto -
toto -
Hello,
I have an error that occurred after declaring a service.
"The EntityManager is closed."
So I did a
Any ideas?
Thanks in advance.
Configuration: Windows / Chrome 53.0.2785.116
I have an error that occurred after declaring a service.
"The EntityManager is closed."
So I did a
echo 'Exception received: ', $e->getMessage(), "\n";to display the exact error, and it comes from the fact that I want to enter a null value for my created_at field. However, I proceeded in the same way for the same service in another app and I never had this error..
Any ideas?
Thanks in advance.
Configuration: Windows / Chrome 53.0.2785.116
2 answers
-
Hello,
It's probably because you're trying to insert a NULL value into a field where "NULL" is not allowed in your database...
Start by checking the relevant table.
--
Best regards,
Jordane -
How is your created_at field managed?
If it's automatic, make sure that its value is filled correctly (obviously, that's not the case since you have null)
If it's manual, well, the same goes, enter your value manually.