Manager/BaseManager.php
protected function getOneOrNullResultFromQueryBuilder(QueryBuilder $queryBuilder)
    {
        $query = $queryBuilder->getQuery();

        $result = $query->getOneOrNullResult();

        return $result;
    }
protected function getOneOrNullResultFromQueryBuilder(QueryBuilder $queryBuilder)
    {
        $query = $queryBuilder->getQuery();

        $result = $query->getOneOrNullResult();

        return $result;
    }
protected function getOneOrNullResultFromQueryBuilder ( QueryBuilder $ queryBuilder ) { $ query = $ queryBuilder -> getQuery ( ) ; $ result = $ query -> getOneOrNullResult ( ) ; return $ result ; }
Get one result from execution of queryBuilder

@param QueryBuilder $queryBuilder

@return mixed;
Get one result from execution of queryBuilder