Skip to content

Attribute Reference ​

AttributeTargetDescription
#[MapFrom('column')]Property / MethodReads value from the specified source column or key.
#[MapTo('column')]Property / MethodSets destination key during reverse sync or export.
#[MapProperty(target, source)]ClassMaps source key to target attribute for dynamic entity attributes.
#[MapIgnore]PropertyExcludes property from mapping (both, to_target, or to_source).
#[MapCast(Target::class)]PropertyHydrates nested child entity or collection (isCollection: true).
#[MapWith(Transformer::class)]PropertyApplies custom ValueTransformerInterface for forward and reverse transforms.
#[MapSource(Source::class)]ClassSets the default paired origin class for toOriginal().

Released under the MIT License.