public function findAllForNotifiable($notifiable_identifier, $notifiable_class, $order = 'DESC')
    {
        return $this->createQueryBuilder('nn')
            ->join('nn.notifiableEntity', 'ne')
            ->join('nn.notification', 'no')
            ->where('ne.identifier = :identifier')
            ->andWhere('ne.class = :class')
            ->setParameter('identifier', $notifiable_identifier)
            ->setParameter('class', $notifiable_class)
            ->orderBy('no.id', $order)
            ->getQuery()
            ->getResult()
        ;
    }
public function findAllForNotifiable($notifiable_identifier, $notifiable_class, $order = 'DESC')
    {
        return $this->createQueryBuilder('nn')
            ->join('nn.notifiableEntity', 'ne')
            ->join('nn.notification', 'no')
            ->where('ne.identifier = :identifier')
            ->andWhere('ne.class = :class')
            ->setParameter('identifier', $notifiable_identifier)
            ->setParameter('class', $notifiable_class)
            ->orderBy('no.id', $order)
            ->getQuery()
            ->getResult()
        ;
    }
public function findAllForNotifiable ( $ notifiable_identifier , $ notifiable_class , $ order = 'DESC' ) { return $ this -> createQueryBuilder ( 'nn' ) -> join ( 'nn.notifiableEntity' , 'ne' ) -> join ( 'nn.notification' , 'no' ) -> where ( 'ne.identifier = :identifier' ) -> andWhere ( 'ne.class = :class' ) -> setParameter ( 'identifier' , $ notifiable_identifier ) -> setParameter ( 'class' , $ notifiable_class ) -> orderBy ( 'no.id' , $ order ) -> getQuery ( ) -> getResult ( ) ; }
Get all NotifiableNotifications for a notifiable

@param        $notifiable_identifier
@param        $notifiable_class
@param string $order

@return NotifiableNotification[]
Get all NotifiableNotifications for a notifiable