protected function getAll(){
		$em = $this->getEntityManager();
		$entityClass = $this->getEntityClass();
		
		if(empty($this->getParentControllerOptions())){
			$items = $em->getRepository($entityClass)->findAll();
		} else {
			$parentId = $this->getEvent()->getRouteMatch()->getParam($this->getParentControllerOptions()->getIdParamName());
			$items = $em->getRepository($entityClass)->findBy(array($this->getOptions()->getParentAttributeName() => $parentId));
		}
		
		return $items;
	}