core_enum.display_name LIKE '%{$name}%'
");
}
+ if(!empty($q['query']['search_begins'])) {
+ $name = $this->escape($q['query']['search_begins']);
+ // ilike on postgres?!?
+ $this->whereAdd("
+ core_enum.name LIKE '{$name}%'
+ OR
+ core_enum.display_name LIKE '{$name}%'
+ ");
+ }
+
if (isset($q['_etypes'])) {
$this->whereAddIn('core_enum.etype', explode(',', $q['_etypes']), 'string');
}
}
}
- function onInsert($req)
+ function onInsert($req, $roo)
{
$x = $this->factory($this->tableName());
$x->query("SELECT core_enum_seqmax_update('". $this->escape($this->etype) ."')"); // no idea why need to do this!!??
}
+
function onUpdate($old, $req)
{
$x = $this->factory($this->tableName());