/** * Filter the options used in SELECT statements * * @param $options array * * @return array */ function makeSelectOptions($options) { foreach ($options as $k => $v) { if (is_numeric($k) && ($v == 'FOR UPDATE' || $v == 'LOCK IN SHARE MODE')) { $options[$k] = ''; } } return parent::makeSelectOptions($options); }
/** * Filter the options used in SELECT statements * * @param $options array * * @return array */ function makeSelectOptions($options) { foreach ($options as $k => $v) { if (is_numeric($k) && $v == 'FOR UPDATE') { $options[$k] = ''; } } return parent::makeSelectOptions($options); }