Skip to content
New issue

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

lastInsertID() in class Db? #8103

Closed
Globulopolis opened this issue Jun 13, 2015 · 3 comments
Closed

lastInsertID() in class Db? #8103

Globulopolis opened this issue Jun 13, 2015 · 3 comments
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.

Comments

@Globulopolis
Copy link
Contributor

Hi!
I cannot find any appropriate method to get the last insert ID. Currently, if I use the Db class to execute queries I will need to do something like this

Db::query($query, $bind);
return Db::get()->lastInsertId();
@tsteur
Copy link
Member

tsteur commented Jun 14, 2015

I think that's how it is supposed to work currently. How would you want to use it instead?

@Globulopolis
Copy link
Contributor Author

Ok. I'm asked question just for clarification.

@tsteur
Copy link
Member

tsteur commented Jun 14, 2015

Ok. Please ask questions in the Forums next time. There's a category for that http://forum.piwik.org/list.php?9

@mattab mattab added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Jun 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

No branches or pull requests

3 participants