Transient
in package
FinalYes
Property that {@see \App\Core\Utils\Hydrators\EntityHydrator} ignores completely, neither extracting nor hydrating it.
The module hydrator iterates properties by reflection, so without this attribute it would pick up computed or non-persisted properties (e.g. a lazily computed value without a DB column).
Usage:
#[Transient]
protected ?string $computedLabel = null;
Attributes
- #[Attribute]
- \Attribute::TARGET_PROPERTY