/** * Add issue * * @param Issue $issue * @return Journal */ public function addIssue(Issue $issue) { if (!$this->issues->contains($issue)) { $this->issues->add($issue); $issue->setJournal($this); } return $this; }
/** * Remove assignedIssue * * @param \Tracker\IssueBundle\Entity\Issue $assignedIssue */ public function removeAssignedIssue(\Tracker\IssueBundle\Entity\Issue $assignedIssue) { $this->assignedIssue->removeElement($assignedIssue); }