Ojs\JournalBundle\Entity\Board::getId PHP Метод

getId() публичный Метод

Get id
public getId ( ) : integer
Результат integer
    public function getId()
    {
        return $this->id;
    }

Usage Example

Пример #1
0
 /**
  * @param  Board            $board
  * @param  User             $user
  * @return RedirectResponse
  */
 public function removeMemberAction(Board $board, User $user)
 {
     $journal = $this->get('ojs.journal_service')->getSelectedJournal();
     if (!$this->isGranted('EDIT', $journal, 'boards')) {
         throw new AccessDeniedException("You not authorized for edit this journal's board!");
     }
     $em = $this->getDoctrine()->getManager();
     $boardMember = $em->getRepository('OjsJournalBundle:BoardMember')->findOneBy(array('user' => $user, 'board' => $board));
     $this->throw404IfNotFound($boardMember);
     $em->remove($boardMember);
     $em->flush();
     return $this->redirectToRoute('ojs_journal_board_show', ['id' => $board->getId(), 'journalId' => $journal->getId()]);
 }
All Usage Examples Of Ojs\JournalBundle\Entity\Board::getId