public function getAudios()
    {
        $qb = $this->entityManager->createQueryBuilder();
        $qb->select('f')
            ->from('\Media\Entity\File', 'f')
            ->innerJoin('\Media\Entity\ObjectFile', 'obf', Join::WITH, 'f.id = obf.fileId')
            ->where('f.type = :type')
            ->andWhere('obf.entityName = :name')
            ->andWhere('obf.objectId = :id')
            ->setParameter('type', \Media\Entity\File::AUDIO_FILETYPE)
            ->setParameter('name', $this->getEntityName())
            ->setParameter('id', $this->getId());

        return $qb->getQuery()->getResult();
    }
public function getAudios()
    {
        $qb = $this->entityManager->createQueryBuilder();
        $qb->select('f')
            ->from('\Media\Entity\File', 'f')
            ->innerJoin('\Media\Entity\ObjectFile', 'obf', Join::WITH, 'f.id = obf.fileId')
            ->where('f.type = :type')
            ->andWhere('obf.entityName = :name')
            ->andWhere('obf.objectId = :id')
            ->setParameter('type', \Media\Entity\File::AUDIO_FILETYPE)
            ->setParameter('name', $this->getEntityName())
            ->setParameter('id', $this->getId());

        return $qb->getQuery()->getResult();
    }
public function getAudios ( ) { $ qb = $ this -> entityManager -> createQueryBuilder ( ) ; $ qb -> select ( 'f' ) -> from ( '\Media\Entity\File' , 'f' ) -> innerJoin ( '\Media\Entity\ObjectFile' , 'obf' , Join :: WITH , 'f.id = obf.fileId' ) -> where ( 'f.type = :type' ) -> andWhere ( 'obf.entityName = :name' ) -> andWhere ( 'obf.objectId = :id' ) -> setParameter ( 'type' , \ Media \ Entity \ File :: AUDIO_FILETYPE ) -> setParameter ( 'name' , $ this -> getEntityName ( ) ) -> setParameter ( 'id' , $ this -> getId ( ) ) ; return $ qb -> getQuery ( ) -> getResult ( ) ; }
Returns an array of ids

@return mixed
Returns an array of ids