Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make recipes usable as ingredient in other recipes #139

Open
8 tasks
Yann-BUTSCHER-EIRL opened this issue Mar 16, 2022 · 0 comments
Open
8 tasks

Make recipes usable as ingredient in other recipes #139

Yann-BUTSCHER-EIRL opened this issue Mar 16, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed php Pull requests that update Php code

Comments

@Yann-BUTSCHER-EIRL
Copy link
Collaborator

Yann-BUTSCHER-EIRL commented Mar 16, 2022

We need to be able to create new recipes that are composed of other recipes.

For example if we make home-made tomato sauce we might want to add it to the pasta alla bolognese recipe.

Todo

  • Create an ingredientable trait
  • Implement it in for the ingredient class
  • Implement it in for the recipe class
  • Update the relationship in recipe to take an ingredientable entity
    • Use polymorphism for this
  • Update the recipe CRUD for it to use the new relationship
    • CREATE
    • READ
    • UPDATE
@Yann-BUTSCHER-EIRL Yann-BUTSCHER-EIRL self-assigned this Mar 16, 2022
@Yann-BUTSCHER-EIRL Yann-BUTSCHER-EIRL added enhancement New feature or request help wanted Extra attention is needed php Pull requests that update Php code labels Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed php Pull requests that update Php code
Projects
None yet
Development

No branches or pull requests

1 participant