getSections() public method

Get sections
public getSections ( ) : array
return array
 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);
 }