function getAllowedSQL($uid, $index = null) { $oCpy = new CCompany(); $where = $oCpy->getAllowedSQL($uid, 'project_company'); $project_where = parent::getAllowedSQL($uid, $index); return array_merge($where, $project_where); }