public function __construct(RecipeRepository $recipe) { parent::__construct(); $this->entityName = 'recipe.recipes'; $this->repository = $recipe; }