Pimcore\Model\Document\Dao::getNextIndex PHP Метод

getNextIndex() публичный Метод

Fetches the maximum index value from siblings.
public getNextIndex ( ) : string
Результат string
    public function getNextIndex()
    {
        $index = $this->db->fetchOne("SELECT MAX(`index`) FROM documents WHERE parentId = ?", [$this->model->getParentId()]);
        $index++;
        return $index;
    }