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

[generate:entity:content] RouteNotFoundException with bundles #2431

Conversation

damlar
Copy link
Contributor

@damlar damlar commented Jun 18, 2016

Drupal version 8.1.3
Drupal Console version 1.0.0-beta2

When you generate a content entity with bundles, you get a Symfony\Component\Routing\Exception\RouteNotFoundException on entity collection route.

Reproducing steps:
drupal generate:module --module=foo
Leave options as default.
drupal generate:entity:content --module=foo --entity-class=Bar
Leave options as default except for entity have bundles set to yes
When visiting /admin/structure/bar you should get the error.

bug

Proposed solution

  • Add an add-page link in content entity annotations to allow the route provider to create the route
  • Prefix the entity add_form route name in action links file with entity so that the route name matches with the route provider one.

@jmolivas jmolivas modified the milestone: 1.0.0-beta3 Jun 20, 2016
@jmolivas jmolivas merged commit cf6834f into hechoendrupal:master Jun 22, 2016
@jmolivas
Copy link
Member

@damlar PR was merged. This will be included on next release, Thanks.

@damlar damlar deleted the fix-RouteNotFoundException-on-generate-entity-content branch June 23, 2016 17:26
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

Successfully merging this pull request may close these issues.

None yet

2 participants