public static function find( $id = null, array $options = array() ) { $not_deleted = array( 'where' => array( array( 'group', '>', 0 ) ) ); if ( ! empty( $options['where'] ) ) // don't overwrite existing where options $options['where'] = array_merge( $options['where'], $not_deleted['where'] ); else $options = array_merge( $options, $not_deleted ); return parent::find( $id, $options ); }
It looks like you're new here. If you want to get involved, click one of these buttons!