shapecode/hidden-entity-type-bundle
A Symfony bundle that adds a hidden entity form type, letting you pass entity IDs through hidden fields and have them automatically transformed back into Doctrine entities on submit—useful for forms that reference entities without showing a visible selector.
HiddenType + data transformer would replace it. The decision is really "one small third-party dependency vs. one small internal utility." Default should be internal unless the pattern appears in 3+ forms.HiddenEntity cast/rule or route-model-binding plus a hidden input. Treat this as a Symfony-only lever.Adopt when all of the following hold:
Look elsewhere (or write ~30 lines yourself) when:
For executives: This is a small, free Symfony utility that removes repetitive code for a common form pattern — attaching a parent record (e.g., an order, project, or account) to a form the user fills in. It's a developer-productivity choice, not a product feature; cost is near zero and the risk is low because it's a few-dozen-line helper that can be replaced in a sprint if abandoned. One caveat: it must sit behind existing permission checks, since any hidden form value can be tampered with.
For engineering: It standardizes how we embed entity references in Symfony Forms — a HiddenEntityType that resolves an entity from a submitted identifier via a configured callable. Adopt it if we're writing the same hidden field + data transformer in three or more forms; otherwise write the transformer locally. Requirements: pin the version, verify compatibility with our Symfony LTS, and enforce authorization in the resolver callable (tenant/user scoping) rather than trusting the submitted ID. Note this is Symfony-only — it has no role in our Laravel work and should not inform cross-framework form strategy.
How can I help you explore Laravel packages today?