Pimcore\Model\User\AbstractUser\Dao::hasChildren PHP Method

hasChildren() public method

Quick test if there are children
public hasChildren ( ) : boolean
return boolean
    public function hasChildren()
    {
        $c = $this->db->fetchOne("SELECT id FROM users WHERE parentId = ?", $this->model->getId());
        return (bool) $c;
    }