PropelLoader¶
The PropelLoader writes processed rows into a given table by using its TableMap and returns the rows.
Optionally, after loading, it can map the IDs from the database back to the rows.
Configuration¶
XPath |
Type |
Description |
|---|---|---|
|
Attribute |
Fully qualified class name of the TableMap to use. |
Children configuration¶
Only one return child is allowed.
XPath |
Type |
Description |
|---|---|---|
|
Attribute |
Name of the database column to return. |
|
Attribute |
Name of the field in the row to store the returned value. |
|
Attribute |
Name of the field to use as a key for mapping the results. |
Example¶
Input data¶
Row |
nameField |
taxRateNameField |
|---|---|---|
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="nameField"/>
</propel>
Database output¶
id_tax_set |
name |
|---|---|
|
|
|
|
Pipeline output¶
Row |
name |
taxRateName |
idTaxSet |
|---|---|---|---|
1 |
String: |
String: |
Integer: |
2 |
String: |
String: |
Integer: |
3 |
String: |
String: |
Integer: |
4 |
String: |
String: |
Integer: |