RecordTransformer for straight copying of properties
Followup to #76 (closed) - Add a RecordTransformer implementation that copies source properties directly to the destination record. E.g.
transform:
-
class: Soong\Transformer\Record\Copy
configuration:
include:
- foo
- bar
-
class: Soong\Transformer\Record\PropertyMapper
configuration:
property_map:
num:
-
class: Soong\Transformer\Property\Increment
source: num
-
class: Soong\Transformer\Property\Double
relation: related
or, with the equivalent effect:
class: Soong\Transformer\Record\Copy
configuration:
exclude:
- num
- related
By default (no explicit configuration) it would copy the entire record.
Edited by Mike Ryan