Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
For multiple entities, it’s cleaner and more beginner-friendly than using the #[MapEntity] attribute (which is still an option).
And imo it’s a good move to deprecate “not passing the mapping” even for single entities.
With the mapping the behaviour is more intuitive and “feels” less magic.
I particularly like the new Mapped Route Parameters.
❌
/show/{id}/
✔
/show/{id:document}/
For multiple entities, it’s cleaner and more beginner-friendly than using the
#[MapEntity]
attribute (which is still an option).And imo it’s a good move to deprecate “not passing the mapping” even for single entities. With the mapping the behaviour is more intuitive and “feels” less magic.