the error is: The identifier id is missing for a query of Cocktails\RecipesBundle\Entity\Ingredient
So, the problem is that controller doesn't get the parameter ingredientId, I've tried many examples and tutorials but nothing helped. maybe there's some easy obvious mistake which I am missing? How could I pass parameters from ajax function to controller?