the result is two records added in database why ? ( note ) but there is a query before it
should i call it query2 instead of query and stmt2 instead of stmt
Do you maybe make the request twice? add a dump() above these lines and check if your request is being repeated.
And which PDO class are you using? I tried with PDOConnection and there is no execute() method in it. Wanted to check if the query() method also executes the query.