@@ -12,7 +12,7 @@ Task reference
1212Accepted inputs
1313---------------
1414
15- Input can be used as the query params if needed
15+ ` array ` Input can be used as the query params if needed
1616
1717Possible outputs
1818----------------
@@ -22,28 +22,32 @@ Iterate on an entity list returned by a sql query.
2222Options
2323-------
2424
25- | Code | Type | Required | Default | Description |
26- | -------------------| --------------------| :--------:| -----------| -------------------------------------------------------------------------|
27- | ` connection ` | ` string ` | | ` null ` | Doctrine connection (default if not specified) |
28- | ` table ` | ` string ` | ** X** | ` [] ` | Table of the query |
29- | ` sql ` | ` string ` | | ` null ` | Query to execute (if not specified then: "select tbl.* from table tbl") |
30- | ` limit ` | ` int ` or ` null ` | | ` null ` | Result max count |
31- | ` offset ` | ` int ` or ` null ` | | ` null ` | Result first item offset |
32- | ` paginate ` | ` int ` or ` null ` | | ` null ` | Paginate the results |
33- | ` input_as_params ` | ` bool ` | | ` false ` | Use the input as params |
34- | ` params ` | ` array ` | | ` [] ` | Query params |
35- | ` types ` | ` array ` | | ` [] ` | Query params types |
36- | ` empty_log_level ` | ` string ` or ` null ` | | ` warning ` | Log level if the result set is empty |
25+ | Code | Type | Required | Default | Description |
26+ | -------------------| --------------------| :--------:| -----------| ---------------------------------------------------------------------------|
27+ | ` connection ` | ` string ` | | ` null ` | Doctrine connection (default if not specified) |
28+ | ` table ` | ` string ` | ** X** | ` [] ` | Table of the query |
29+ | ` sql ` | ` string ` | | ` null ` | Query to execute (if not specified then: "select tbl.* from ` table ` tbl") |
30+ | ` limit ` | ` int ` or ` null ` | | ` null ` | Result max count |
31+ | ` offset ` | ` int ` or ` null ` | | ` null ` | Result first item offset |
32+ | ` paginate ` | ` int ` or ` null ` | | ` null ` | Paginate the results |
33+ | ` input_as_params ` | ` bool ` | | ` false ` | Use the input as params |
34+ | ` params ` | ` array ` | | ` [] ` | Query params |
35+ | ` types ` | ` array ` | | ` [] ` | Query params types |
36+ | ` empty_log_level ` | ` string ` or ` null ` | | ` warning ` | Log level if the result set is empty |
37+
3738
3839Example
3940-------
4041
4142``` yaml
42- entry :
43- service : ' @CleverAge\DoctrineProcessBundle\Task\Database\DatabaseReaderTask'
44- options :
45- table : ' book'
46- limit : 10
47- offset : 3
48- empty_log_level : debug
43+ # Task configuration level
44+ code :
45+ service : ' @CleverAge\DoctrineProcessBundle\Task\Database\DatabaseReaderTask'
46+ options :
47+ table : ' book'
48+ limit : 10
49+ offset : 3
50+ params :
51+ title : " IT"
52+ empty_log_level : debug
4953` ` `
0 commit comments