src/Component/AuthManager.php
private function checkForCyclicHierarchy($parentRoleId, $childRoleId)
    {
        $result = $this->repositoryRegistry
            ->getRoleHierarchyRepository()
            ->hasChildRoleId($parentRoleId, $childRoleId);

        if ($result === true) {
            throw new CyclicException('There detected cyclic line. Role with id = ' . $parentRoleId . ' has child role whit id =' . $childRoleId);
        }
    }
private function checkForCyclicHierarchy($parentRoleId, $childRoleId)
    {
        $result = $this->repositoryRegistry
            ->getRoleHierarchyRepository()
            ->hasChildRoleId($parentRoleId, $childRoleId);

        if ($result === true) {
            throw new CyclicException('There detected cyclic line. Role with id = ' . $parentRoleId . ' has child role whit id =' . $childRoleId);
        }
    }
private function checkForCyclicHierarchy ( $ parentRoleId , $ childRoleId ) { $ result = $ this -> repositoryRegistry -> getRoleHierarchyRepository ( ) -> hasChildRoleId ( $ parentRoleId , $ childRoleId ) ; if ( $ result === true ) { throw new CyclicException ( 'There detected cyclic line. Role with id = ' . $ parentRoleId . ' has child role whit id =' . $ childRoleId ) ; } }
Checking hierarchy cyclic line
@param integer $parentRoleId
@param integer $childRoleId
@throws CyclicException
@throws \Doctrine\ORM\Query\QueryException
Checking hierarchy cyclic line