/** * * @access public * @param \Map2u\ForumBundle\Entity\Board $board * @return \Map2u\ForumBundle\Manager\ManagerInterface */ public function saveBoard(Board $board) { $boardCount = $this->model->getBoardCount(); $board->setListOrderPriority(++$boardCount); $this->gateway->saveBoard($board); return $this; }