return $ret;
}
- function initCompanies($name, $type)
+ function initCompanies($roo, $name, $type)
{
+ $companies = DB_DataObject::factory('companies');
+ $companies->setFrom(array(
+ 'name' => $name,
+ 'comptype' => $type,
+ 'background_color' => '',
+ 'created_dt' => $this->sqlValue('NOW()'),
+ 'updated_dt' => $this->sqlValue('NOW()')
+ ));
+ $companies->insert();
+ $companies->onInsert(array(), $roo);
}
}