src/Entity/MenuItemManager.php
public function findAllJoinPage()
    {
        $qb = $this->createQueryBuilder('m');
        $qb->select('m,p');
        $qb->leftJoin('m.page', 'p');

        return $qb->getQuery()->execute();
    }
public function findAllJoinPage()
    {
        $qb = $this->createQueryBuilder('m');
        $qb->select('m,p');
        $qb->leftJoin('m.page', 'p');

        return $qb->getQuery()->execute();
    }
public function findAllJoinPage ( ) { $ qb = $ this -> createQueryBuilder ( 'm' ) ; $ qb -> select ( 'm,p' ) ; $ qb -> leftJoin ( 'm.page' , 'p' ) ; return $ qb -> getQuery ( ) -> execute ( ) ; }
Get all menu items and their pages if available.

@return mixed
Get all menu items and their pages if available .