// DB_DataObject::debugLevel(1);
if (!empty($q['query']['empty_etype'])) {
- $this->whereAdd("etype = ''");
+ $this->whereAdd("core_enum.etype = ''");
}
// this should be handled by roo... using '!name[0]' ....
}
- function merge($to, $roo)
+ function merge($merge_to, $roo)
{
$affects = array();
$affects[$tbl .'.' . $col] = true;
}
}
- print_R($affects);exit;
+
foreach($affects as $k => $true) {
$ka = explode('.', $k);
foreach ($chk->fetchAll() as $c){
$cc = clone ($c);
- $c->{$ka[1]} = $to;
+ $c->{$ka[1]} = $merge_to;
$c->update($cc);
}
}