public function getSections() { $this->__load(); return parent::getSections(); }
/** * Delete subscription * * @param Newscoop\Entity\Subscription $subscription * @return void */ public function delete(Subscription $subscription) { $em = $this->getEntityManager(); foreach ($subscription->getSections() as $section) { $em->remove($section); } $em->remove($subscription); }