Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB