public function getRoot()
{
$tableName = $this->tableName();
$id = $this->getParentsIds();
if ($id && is_array($id)) {
$id = $id[0];
}
$query = $this->find()->andWhere(["{$tableName}.[[" . $this->primaryKey()[0] . "]]" => $id]);
$query->multiple = false;
return $query;
}