Lets say I have recipes and ingredients, so there is a relation n:m.
Ok, there is everything ok and the relationship works and I have a join table named ingredients_recipe and its store recipe id and ingredient id for each recipe in the database.
Now, I want to create a search form where you can select ingredients and then it show recipes with thoses ingredients.
For example:
I select potato, tomato and rice, so it should show recipes with thoses ingredients.