public function newNestedSetQuery()
{
$builder = $this->newQuery()->orderBy($this->getQualifiedOrderColumnName());
if ($this->isScoped()) {
foreach ($this->scoped as $scopeFld) {
$builder->where($scopeFld, '=', $this->{$scopeFld});
}
}
return $builder;
}