Ojs\JournalBundle\Entity\Subject::getId PHP Method

getId() public method

Get id
public getId ( ) : integer
return integer
    public function getId()
    {
        return $this->id;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @param string $institution
  */
 public function getByInstitutionAndSubject($institution, Subject $subject)
 {
     $qb = $this->createQueryBuilder('j');
     $qb->join('j.institution', 'i', 'WITH', 'i.slug=:institution')->join('j.subjects', 's', 'WITH', 's.id=:subject')->setParameter('institution', $institution)->setParameter('subject', $subject->getId());
     return $qb->getQuery()->getResult();
 }
All Usage Examples Of Ojs\JournalBundle\Entity\Subject::getId