/**
  * @param EntityManager    $entityManager
  * @param EntityRepository $repository
  * @param EntityMetadata   $metadata
  * @param array            $inputFilters
  */
 public function __construct(EntityManager $entityManager, EntityRepository $repository, EntityMetadata $metadata, array $inputFilters = array())
 {
     parent::__construct($inputFilters);
     $this->entityManager = $entityManager;
     $this->entityRepository = $repository;
     $this->entityMetadata = $metadata;
 }
 /**
  * @param DocumentRepository $repository
  * @param array $inputFilters
  */
 public function __construct(DocumentRepository $repository, array $inputFilters = array())
 {
     parent::__construct($inputFilters);
     $this->repository = $repository;
 }