src/Kunstmaan/NodeBundle/Repository/NodeRepository.php
public function getNodeByInternalName($internalName)
    {
        $qb = $this->createQueryBuilder('n')
            ->select('n')
            ->where('n.deleted = 0')
            ->andWhere('n.internalName = :internalName')
            ->setParameter('internalName', $internalName);

        return $qb->getQuery()->getOneOrNullResult();
    }
public function getNodeByInternalName($internalName)
    {
        $qb = $this->createQueryBuilder('n')
            ->select('n')
            ->where('n.deleted = 0')
            ->andWhere('n.internalName = :internalName')
            ->setParameter('internalName', $internalName);

        return $qb->getQuery()->getOneOrNullResult();
    }
public function getNodeByInternalName ( $ internalName ) { $ qb = $ this -> createQueryBuilder ( 'n' ) -> select ( 'n' ) -> where ( 'n.deleted = 0' ) -> andWhere ( 'n.internalName = :internalName' ) -> setParameter ( 'internalName' , $ internalName ) ; return $ qb -> getQuery ( ) -> getOneOrNullResult ( ) ; }
Get a single node by internal name.

@param string $internalName The internal name of the node

@return Node
Get a single node by internal name .