⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Is it possible update 2 tables ?



piker
  • profile picture
  • Member

Posted 20 June 2012 - 08:51 AM

Library working fine thanks very much for your work.

I have GroceryCRUD view from 3 tables and I edit toners_printers table. It is working OK

toners
+------------+
id_toner


printers
+------------+
id_printer


toners_printers
+-------------+
id_toner_printer
id_toner
id_printer
status

But I dont know how to make GroceryCRUD view for toners_printers table where 'status' is in toners table. Is it possible to realize ?

toners
+------------+
id_toner
status

printers
+------------+
id_printer


toners_printers
+-------------+
id_toner_printer
id_toner
id_printer

noskov.biz
  • profile picture
  • Member

Posted 20 June 2012 - 21:28 PM

Hello, piker! I think you can easily update 2 tables with grocery CRUD callbacks. Just look at callback_before_update and callback_after_update, I hope that will help you.