Ojs\JournalBundle\Entity\JournalUser::getId PHP Méthode

getId() public méthode

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

Usage Example

 private function createEditForm(JournalUser $entity)
 {
     $actionUrl = $this->generateUrl('ojs_journal_user_update', ['journalId' => $entity->getJournal()->getId(), 'id' => $entity->getId()]);
     $form = $this->createForm(new JournalUserEditType(), $entity, ['method' => 'PUT', 'action' => $actionUrl]);
     return $form;
 }