public function findCategoryByKey($key);
/** * {@inheritdoc} */ public function findByKey($key) { if (!($entity = $this->categoryRepository->findCategoryByKey($key))) { throw new CategoryKeyNotFoundException($key); } return $entity; }