/** * @param Section $section The section object to add. */ protected function doAddSection($section) { $sectionHasItem = new SectionHasItem(); $sectionHasItem->setSection($section); $this->addSectionHasItem($sectionHasItem); }
/** * @param SectionHasItem $sectionHasItem The sectionHasItem object to add. */ protected function doAddSectionHasItem($sectionHasItem) { $this->collSectionHasItems[] = $sectionHasItem; $sectionHasItem->setSection($this); }