Welcome Guest, Not a member yet? Register   Sign In
Cannot add or update a child row: a foreign key constraint fails
#11

(This post was last modified: 06-14-2022, 06:32 PM by kenjis.)

Sorry, you need the namespace.

PHP Code:
Events::on(
    'DBQuery',
    static function (\CodeIgniter\Database\Query $query) { log_message('alert', (string) $query); }
); 

You can see the query in the error page.
[Image: 2022-06-15-10-27-36.png]
Reply


Messages In This Thread
RE: Cannot add or update a child row: a foreign key constraint fails - by kenjis - 06-14-2022, 06:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB