/** * @param ChildCategory $category The ChildCategory object to add. */ protected function doAddCategory(ChildCategory $category) { $this->collCategories[] = $category; $category->setUser($this); }