error when adding record - Field 'c_date' doesn't have a default value

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
ufone
User
Posts: 51

error when adding record - Field 'c_date' doesn't have a default value

Post by ufone »

I have no idea what is error thanks in advance

[2023-03-21T19:57:24.952293+00:00] log.DEBUG: Slim Application Error Type: Doctrine\DBAL\Exception\NotNullConstraintViolationException Code: 1364 Message: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1364 Field 'c_date' doesn't have a default value File: C:\xampp\htdocs\portal\vendor\doctrine\dbal\src\Driver\API\MySQL\ExceptionConverter.php Line: 114 Trace:
#0 C:\xampp\htdocs\portal\vendor\doctrine\dbal\src\Connection.php(1931): Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert(Object(Doctrine\DBAL\Driver\PDO\Exception), Object(Doctrine\DBAL\Query))
#1 C:\xampp\htdocs\portal\vendor\doctrine\dbal\src\Connection.php(1874): Doctrine\DBAL\Connection->handleDriverException(Object(Doctrine\DBAL\Driver\PDO\Exception), Object(Doctrine\DBAL\Query)) #2
...


arbei
User
Posts: 9286

Post by arbei »

As the error message said, you need to provide a value for the field.


ufone
User
Posts: 51

Post by ufone »

thanks it's working


Post Reply