{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
-
public $__table = 'core_enum'; // table name
public $id; // int(11) not_null primary_key auto_increment
public $etype; // string(32) not_null
if (!empty($q['query']['empty_etype'])) {
$this->whereAdd("core_enum.etype = ''");
}
+
+ if(!empty($q['query']['name'])){
+ $search_name = $this->escape($q['query']['name']);
+ $this->whereAdd("
+ core_enum.name LIKE '%$search_name%'
+ ");
+ }
// this should be handled by roo... using '!name[0]' ....
if(!empty($q['!name'])){
$t->name = isset($row['name']) ? $row['name'] : '';
- if (empty($t->name)) {
+ if (empty($t->name) && $t->name != 0) {
print_R($data);
die("ERROR: invalid name used for core_enum\n\n");
}
function merge($merge_to, $roo)
{
$affects = array();
-
- $all_links = $GLOBALS['_DB_DATAOBJECT']['LINKS'][$this->_database];
+ $tn = $this->tableName();
+ $x = $this->factory($tn);
+ $all_links = $x->databaseLinks();
foreach($all_links as $tbl => $links) {
foreach($links as $col => $totbl_col) {