I am having sql problem. I can not add more than one record line, when I add the first, it works, but when I add the second one it does not work, and so I have to delete one line to be able to add another.
The save mechanism, in theory, works, but only to save a line
"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or
update a child row: a foreign key constraint fails (`Gadi`.`printers`,
CONSTRAINT `printer_id` FOREIGN KEY (`id`) REFERENCES `users` (`id`))
(SQL: insert into `printers` (`link_printer`, `name_printer`,
`printer_id`, `updated_at`, `created_at`) values (a/printer/api/a?
apikey=e2ddc036-f883-460e-beb6-fc41026d720d&a=stateList&data=, Impre3d,
1, 2019-06-14 18:08:30, 2019-06-14 18:08:30)) ◀"
In the above error to see clearly that the foreign key is not empty.