Unable to generate canonical, edit, and update URLs for entity test multilanguage with bundle

Created on 23 November 2023, almost 2 years ago
Updated 6 September 2024, about 1 year ago

Problem/Motivation

Currently., it is nos possible creating canonical, edit-form and delete-form URLs for the entity type "entity_test_mul_with_bundle".

Trying to create a phpunit test (any type) that uses the "entity_test_mul_with_bundle" entity type, has the following problem: when it is tried to generate its URL it throws the following error:


Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("entity_test_mul") to generate a URL for route "entity.entity_test_mul_with_bundle.canonical"

It would be nice to have this problem fixed so that contributed modules can make tests using a translatable entity type with bundles.

Steps to reproduce

  1. Create a phpunit test of any type
  2. Create a entity of type "entity_test_mul_with_bundle"
  3. Go to the entity

After following these steps, the error will be fired.

Proposed resolution

Change EntityTestMulWithBundle annotation links so instead of using entity_test_mul uses entity_test_mul_with_bundle.

πŸ› Bug report
Status

RTBC

Version

11.0 πŸ”₯

Component
User systemΒ  β†’

Last updated 23 days ago

Created by

πŸ‡ͺπŸ‡ΈSpain omarlopesino

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024