Propel loader

It loads given rows to a given table by using its tablemap and returns the rows.

optional: After loading, it can map the ids from the database to the rows.

Configuration

XPath

Type

Description

propel/@propelTableMapClass

Attribute

Classname of the tablemap

Children configuration

Only one return child is allowed.

XPath

Type

Description

return/@column

Attribute

name of the column to return

return/@to

Attribute

name of the field to return the value to

return/@key

Attribute

name of the field to use as key to map the results

Example

Input data

Row

name

tax_rate_name

1

String: 'StandardTaxes'

String: 'Austria Standard'

2

String: 'StandardTaxes'

String: 'Germany Standard'

3

String: 'ShipmentTaxes'

String: 'Austria Standard'

4

String: 'ShipmentTaxes'

String: 'Germany Standard'

Pipeline configuration

<propel propelTableMapClass="\Orm\Zed\Tax\Persistence\Map\SpyTaxSetTableMap">
        <return column="id_tax_set" to="idTaxSet" key="name"/>
</propel>

Resulting table data

spy_tax_set

id_tax_set

name

1

StandardTaxes

2

ShipmentTaxes

3

StandardTaxes

4

ShipmentTaxes

Row

name

tax_rate_name

idTaxSet

1

String: 'StandardTaxes'

String: 'Austria Standard'

Integer: 1

2

String: 'StandardTaxes'

String: 'Germany Standard'

Integer: 2

3

String: 'ShipmentTaxes'

String: 'Austria Standard'

Integer: 3

4

String: 'ShipmentTaxes'

String: 'Germany Standard'

Integer: 4