Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- An exception occurred while executing 'INSERT INTO articles (title, content, dateAdded, authorId) VALUES (?, ?, ?, ?)' with params [null, null, null, 1]:
- SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null
- 500 Internal Server Error - NotNullConstraintViolationException
- 2 linked Exceptions:
- PDOException ยป
- PDOException ยป
- [3/3] NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO articles (title, content, dateAdded, authorId) VALUES (?, ?, ?, ?)' with params [null, null, null, 1]:
- SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null +
- [2/3] PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null -
- in vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php at line 93 -
- try {
- return parent::execute($params);
- } catch (\PDOException $exception) {
- throw new PDOException($exception);
- }
- }
- at PDOStatement ->execute (null)
- in vendor\doctrine\dbal\lib\Doctrine\DBAL\Statement.php at line 168 +
- at Statement ->execute ()
- in vendor\doctrine\orm\lib\Doctrine\ORM\Persisters\Entity\BasicEntityPersister.php at line 281 +
- at BasicEntityPersister ->executeInserts ()
- in vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php at line 1018 +
- at UnitOfWork ->executeInserts (object(ClassMetadata))
- in vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php at line 378 +
- at UnitOfWork ->commit (null)
- in vendor\doctrine\orm\lib\Doctrine\ORM\EntityManager.php at line 356 +
- at EntityManager ->flush ()
- in src\SoftUniBlogBundle\Controller\ArticleController.php at line 34 +
- at ArticleController ->createAction (object(Request))
- at call_user_func_array (array(object(ArticleController), 'createAction'), array(object(Request)))
- in vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php at line 153 +
- at HttpKernel ->handleRaw (object(Request), '1')
- in vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php at line 68 +
- at HttpKernel ->handle (object(Request), '1', true)
- in vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Kernel.php at line 169 +
- at Kernel ->handle (object(Request))
- in web\app_dev.php at line 37 +
- at require ('D:\Projects\Software-Technologies\01.PHP\01.Homeworks\HW03\Blog\web\app_dev.php')
- in vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Resources\config\router_dev.php at line 40 +
- [1/3] PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null +
- Logs -
- 1 error
- INFO - Matched route "{route}".
- DEBUG - Read existing security token from the session.
- DEBUG - SELECT t0.id AS id_1, t0.email AS email_2, t0.fullName AS fullName_3, t0.password AS password_4 FROM users t0 WHERE t0.id = ?
- DEBUG - User was reloaded from a user provider.
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - "START TRANSACTION"
- DEBUG - INSERT INTO articles (title, content, dateAdded, authorId) VALUES (?, ?, ?, ?)
- DEBUG - "ROLLBACK"
- CRITICAL - Uncaught PHP Exception Doctrine\DBAL\Exception\NotNullConstraintViolationException: "An exception occurred while executing 'INSERT INTO articles (title, content, dateAdded, authorId) VALUES (?, ?, ?, ?)' with params [null, null, null, 1]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null" at D:\Projects\Software-Technologies\01.PHP\01.Homeworks\HW03\Blog\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\AbstractMySQLDriver.php line 112
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- DEBUG - Notified event "{event}" to listener "{listener}".
- Stack Trace (Plain Text) +
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement