• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
active record foreign key...

#1
[eluser]psychoder[/eluser]
is there a way i can trap when the user delete the record which is
associated with another record in another table ( foreign key constraints )...


do i have to check it using another query??

#2
[eluser]Bhashkar Yadav[/eluser]
I think, you are deleting records from the controller's method.
so you can create a hook and associate as post_controller with the controller and method which deleting the records.
In this way you can track if records have been deleted successfully.

#3
[eluser]Bhashkar Yadav[/eluser]
for hooks, you can get help from here: http://ellislab.com/codeigniter/user-gui...hooks.html


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.