src/DlcCategory/Mapper/Category.php
public function getAllRootIds()
    {
        $entityClass = $this->getEntityClass();

        $query  = $this->getObjectManager()->createQuery('SELECT DISTINCT c.root FROM ' . $entityClass . ' c');
        $result = $query->getResult();

        $rootIds = array();
        foreach ($result as $resultArray) {
            $rootIds[] = $resultArray['root'];
        }

        return $rootIds;
    }
public function getAllRootIds()
    {
        $entityClass = $this->getEntityClass();

        $query  = $this->getObjectManager()->createQuery('SELECT DISTINCT c.root FROM ' . $entityClass . ' c');
        $result = $query->getResult();

        $rootIds = array();
        foreach ($result as $resultArray) {
            $rootIds[] = $resultArray['root'];
        }

        return $rootIds;
    }
public function getAllRootIds ( ) { $ entityClass = $ this -> getEntityClass ( ) ; $ query = $ this -> getObjectManager ( ) -> createQuery ( 'SELECT DISTINCT c.root FROM ' . $ entityClass . ' c' ) ; $ result = $ query -> getResult ( ) ; $ rootIds = array ( ) ; foreach ( $ result as $ resultArray ) { $ rootIds [ ] = $ resultArray [ 'root' ] ; } return $ rootIds ; }
Returns a list of all root category ids

@return array
Returns a list of all root category ids