Reads Doctrine entity from a repository
- Service:
CleverAge\DoctrineProcessBundle\Task\EntityManager\DoctrineReaderTask
None
array
: Result set of the entities
Code | Type | Required | Default | Description |
---|---|---|---|---|
class_name |
string |
X | null |
Name of the class (e.g. : 'App\Entity\Author') |
criteria |
array |
[] |
Criteria of the query | |
order_by |
array |
[] |
Order by of the query | |
limit |
int or null |
null |
Result max count | |
offset |
int or null |
null |
Result first item offset | |
empty_log_level |
string or null |
warning |
Log level if the result set is empty |
# Task configuration level
code:
service: '@CleverAge\DoctrineProcessBundle\Task\EntityManager\DoctrineReaderTask'
options:
class_name: 'App\Entity\Author'
criteria:
lastname: 'King'
order_by:
lastname: 'asc'
limit: 5
offset: 3