Jump to content

Cannot Update 2 fields Primary Key

primary key

  • Please log in to reply
2 replies to this topic

#1 asep



  • Members
  • Pip
  • 3 posts

Posted 23 October 2017 - 05:44 PM

Hi All,


i have confuse with updating table with 2 primary key, it;s cannot save for selected PK,

when i save it, updated all table data.


what i have to do ?




#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

Posted 24 October 2017 - 04:43 AM

well... this my friend is a special case and not generic case..

GroceryCrud as a library is built for generic case and dose not cover up special cases like yours ...

But it surely have thought bout the same and have set an alternative for special cases like yours..

its callback_update / callback_insert

for such cases.. u are expected to handle the insert / update query on your own.


Hope this resolves your issue..


Happy GCing :)

#3 asep



  • Members
  • Pip
  • 3 posts

Posted 31 October 2017 - 03:19 AM

thanks, amit shah,


it's done

Also tagged with one or more of these keywords: primary key

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users