Writes multiple entities to a database.
- Service:
CleverAge\DoctrineProcessBundle\Task\EntityManager\DoctrineBatchWriterTask
array
: Entities to be persisted in the database
array
: Batch of the entities persisted to the database
Code | Type | Required | Default | Description |
---|---|---|---|---|
batch_count |
int |
10 |
Batch size |
# Task configuration level
code:
service: '@CleverAge\DoctrineProcessBundle\Task\EntityManager\DoctrineBatchWriterTask'
options:
batch_count: 2