We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

ee()->db->insert() creates primary key which then does not persist

Development and Programming

ThorntonStuart's avatar
ThorntonStuart
2 posts
8 years ago
ThorntonStuart's avatar ThorntonStuart

Hi there,

I am using ee()->db->insert() to insert rows into grid_field tables in an extension I am updating. The insert runs with no problems or errors, and when I use insert_id() to check that new PK’s have been generated they are all present and correspond with the tables. However when I go to check the tables, no new rows have been added?

Any help here would be much appreciated.

Cheers

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.