/** * {@inheritdoc} */ public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) { try { return $this->unstableRepository->findBy($criteria, $orderBy, $limit, $offset); } catch (\Exception $exception) { return $this->fallbackRepository->findBy($criteria, $orderBy, $limit, $offset); } }