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

taco_order_tacos table has no entry #9

Open
mrigankvallabh opened this issue Jun 14, 2022 · 0 comments
Open

taco_order_tacos table has no entry #9

mrigankvallabh opened this issue Jun 14, 2022 · 0 comments

Comments

@mrigankvallabh
Copy link

As it is the final code of the chapter 5, has one slight problem that it creates no entry in the taco_order_tacos table, and hence the link between the taco_order and taco is lost.

This is perhaps happening because the Modelattribute in DesignController always passes a New TacoOrder

@ModelAttribute(name = "order", value = "order")
  public TacoOrder order() {
    return new TacoOrder();
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant