We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$a = $pdo->insert() ->into("table") ->columns('x', 'y') ->values($x, $y); $insertId = $a->execute();
returns
object(PDOStatement)#106 (1) { ["queryString"]=> string(66) "INSERT INTO table (x, y) VALUES (?, ?)" }
instead of new id, how to get it in 2.1 version?
The text was updated successfully, but these errors were encountered:
I have updated the docs, it should be $insertId = $a->execute()->lastInsertId();
$insertId = $a->execute()->lastInsertId();
Sorry, something went wrong.
No branches or pull requests
returns
instead of new id, how to get it in 2.1 version?
The text was updated successfully, but these errors were encountered: