/** * @param CTool $tool */ public function addTools(CTool $tool) { $tool->setCourse($this); $this->tools[] = $tool; }