public function addBoard(Board $board) { if (!$this->boards->contains($board)) { $this->boards->add($board); $board->setJournal($this); } return $this; }