Welcome Guest, Not a member yet? Register   Sign In
prevent database update when no where statement found
#6

[eluser]Michael Wales[/eluser]
Oh - for like a development environment, to make sure you don't jack up your DB?

I would just override the Active Record class modifying that one function, add in a simple check for it that calls show_error() if count($values) < 1

Then when it comes time to go production, you just have to delete that one file from your application's libraries directory.

Make a hack of it - no need for there to be a config entry and what-not, you don't want to spend more time on your development environment than what you are developing. Wink


Messages In This Thread
prevent database update when no where statement found - by El Forum - 01-09-2009, 01:19 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 01:32 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 01:33 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 01:41 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 01:55 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 02:10 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 02:23 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 02:37 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 02:42 PM
prevent database update when no where statement found - by El Forum - 01-09-2009, 03:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB