protected function createQueryBuilder($alias = 'a')
    {
        $repository = $this->get('orm.em')->getRepository($this->getEntityClass());

        $queryBuilder = $repository->createQueryBuilder($alias);

        return $queryBuilder;
    }