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 |
|---|---|---|
|
Attribute |
Classname of the tablemap |
Children configuration¶
Only one return child is allowed.
XPath |
Type |
Description |
|---|---|---|
|
Attribute |
name of the column to return |
|
Attribute |
name of the field to return the value to |
|
Attribute |
name of the field to use as key to map the results |
Example¶
Input data¶
Row |
name |
tax_rate_name |
|---|---|---|
1 |
String: |
String: |
2 |
String: |
String: |
3 |
String: |
String: |
4 |
String: |
String: |
Pipeline configuration¶
<propel propelTableMapClass="\Orm\Zed\Tax\Persistence\Map\SpyTaxSetTableMap">
<return column="id_tax_set" to="idTaxSet" key="name"/>
</propel>
Resulting table data¶
id_tax_set |
name |
|---|---|
1 |
StandardTaxes |
2 |
ShipmentTaxes |
3 |
StandardTaxes |
4 |
ShipmentTaxes |
Row |
name |
tax_rate_name |
idTaxSet |
|---|---|---|---|
1 |
String: |
String: |
Integer: |
2 |
String: |
String: |
Integer: |
3 |
String: |
String: |
Integer: |
4 |
String: |
String: |
Integer: |