propel Unable to execute INSERT statement [INSERT INTO (`id`) VALUES (:p0)
Primary tabs
propel nable to execute INSERT statement [INSERT INTO (`id`) VALUES (:p0)
Убедитесь, что вы не передаёте пустое значение. (так это и было моём случае).
Полный текст ошибки:
Uncaught Exception Propel\Runtime\Exception\PropelException: "Unable to execute INSERT statement [INSERT INTO `` (`id`) VALUES (:p0)]" at ...line 875
Time: 10:34:12
Channel: runtime
Context:
exception:
{
"class": "Propel\\Runtime\\Exception\\PropelException",
"message": "Unable to execute INSERT statement [INSERT INTO `car_arrival_timing_groups` (`id`) VALUES (:p0)]",
"code": 0,
"file": "",
"trace": [
.................
],
"previous": {
"class": "PDOException",
"message": "SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`gazelkin`.`car_arrival_timing_groups`, CONSTRAINT `car_arrival_timing_groups_fk_48ce03` FOREIGN KEY (`city_id`) REFERENCES `city` (`id`) ON UPDATE CASCADE)",
"code": "23000",
"file": "",
"trace": [
.....................
]
}
}
- Log in to post comments
- 4279 reads