function($id)
{
$args = func_get_args();
$res = [];
while ($o = $this->nativeOption(...$args)) {
if ($o[$this->fields['code']]) {
$res[] = $o[$this->fields['code']];
if ($o[$this->fields['id_parent']] === $this->default) {
break;
}
$args = [$o[$this->fields['id_parent']]];
}
else {
return null;
}
}
if (end($res) === 'root') {
array_pop($res);
}
return count($res) ? $res : null;
}