Jump to content

Db::getInstance()->insert insert duplicate entry

Recommended Posts


I am studying Prestashop now. I made mymodcomment module. There is a problem. When I use Db::getInstance()->insert to insert comment in table, the entry will be twice inserted. I have tried with Db::getInstance()->execute("INSERT INTO table....") but still the same problem. I have searched in my module, whether there is a multiple call to the function or multiple call to insert method, there is only one call.  can you please help me? 

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More