I have created two entities and I want to connect them by route. my edit route is:
entity.entity_two.edit_form:
path:
'/property/configuration/communication/{entity_one}/variant/{entity_two}/edit'
defaults:
_entity_form: communication_variant.edit
_title: 'Add/Edit Email Variant'
entity_one: '%id'
options:
parameters:
entity_one:
type: 'entity_one'
communication_variant:
type: entity:node
but I get an error on edit path as it says: entity one is empty but as i check entity one has value in the table. so my idea is that on submission of entity two form, I get entity_one id by entity reference and set in my route. so I want to implement that idea any help?