public function testFindAllWithDistinct()
 {
     $clients = new Clients(5, 'John Doe', new DateTime('2014-12-11'), 3, [new DateTime('2014-12-16'), new DateTime('2014-12-31'), new DateTime('2015-03-11')], 25.125);
     $this->repository->add($clients);
     $pageable = new Pageable(1, 10, null, null, null, new Fields(['name']));
     $result = $this->repository->findAll($pageable);
     $this->assertEquals(4, count($result->content()));
 }
 /**
  * Returns a Page of entities meeting the paging restriction provided in the Pageable object.
  *
  * @param Pageable $pageable
  *
  * @return Page
  */
 public function findAll(Pageable $pageable = null) : Page
 {
     return parent::findAll($pageable);
 }