/** When using the form filter **/ public function getDiffAsArray($is_old = true) { if ($is_old) { $hstore = $this->_get('old_value'); } else { $hstore = $this->_get('new_value'); } $diff = new Hstore(); $diff->import($hstore); $tab = $diff->getIterator(); foreach ($tab as $key => $value) { if (preg_match("/_indexed\$/", $key) || preg_match("/_name_ts\$/", $key) || preg_match("/_order_by\$/", $key)) { $tab->offsetUnset($key); } } return $tab; }