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

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??

[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.

[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-2020 MyBB Group.