kemal birinci Thu Nov 03 21:07:41 -0400 2011

Subject: override select

Hi,

I have "deleted" field in my database table.I want to list where deleted=0
But I dont want to write conditions in all of my objects.
example : object::find('all',array('conditions'=>'deleted=0'))

So how can I override select in classes?
when I call object::find('all')
it must brings deleted=0 lines from table.

I hope I could examplain.
Thank you