Skip to content

Commit 5b82d09

Browse files
author
Xavier Marchegay
committed
fix documentation
1 parent ffd8cef commit 5b82d09

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ See process bundle documentation
77
- Tasks
88
- Entities
99
- [DoctrineReaderTask](src/Documentation/reference/task/doctrine_reader_task.md)
10-
- [DoctrineWriterTask](src/Documentation/reference/task/doctrine_writer_task.md)
10+
- [DoctrineUpdateTask](src/Documentation/reference/task/doctrine_updater_task.md)

src/Documentation/reference/task/doctrine_reader_task.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Reads data from a Doctrine Repository.
66
Task reference
77
--------------
88

9-
* **Service**: `CleverAge\ProcessBundle\Addon\Doctrine\Task\EntityManager\DoctrineReaderTask`
9+
* **Service**: `CleverAge\DoctrineProcessBundle\Task\Database\DatabaseReaderTask`
1010
* **Iterable task**
1111

1212
Accepted inputs
@@ -22,14 +22,15 @@ Iterate on an entity list returned by a Doctrine query.
2222
Options
2323
-------
2424

25-
All the criteria, order_by, limit and offset options behave like the [`EntityRepository::findBy`](https://www.doctrine-project.org/projects/doctrine-orm/en/latest/reference/working-with-objects.html#by-simple-conditions) method.
25+
| Code | Type | Required | Default | Description |
26+
|------------------| ---- | :------: | ------- |-------------------------------------------------------|
27+
| `table` | `string` | **X** | | Table |
28+
| `params` | `array` | | `[]` | List of field => value to use while matching entities |
29+
| `limit` | `int` or `null` | | `null` | Result max count |
30+
| `offset` | `int` or `null` | | `null` | Result first item offset |
31+
| `entity_manager` | `string` or `null` | | `null` | Use another entity manager than the default |
2632

27-
| Code | Type | Required | Default | Description |
28-
| ---- | ---- | :------: | ------- | ----------- |
29-
| `class_name` | `string` | **X** | | Class name of the entity |
30-
| `criteria` | `array` | | `[]` | List of field => value to use while matching entities |
31-
| `order_by` | `array` | | `[]` | List of field => direction |
32-
| `limit` | `int` or `null` | | `null` | Result max count |
33-
| `offset` | `int` or `null` | | `null` | Result first item offset |
34-
| `entity_manager` | `string` or `null` | | `null` | Use another entity manager than the default |
33+
Example
34+
-------
3535

36+
https://github.com/cleverage/process-bundle-ui-demo/blob/main/config/packages/process/demo.doctrine.read.yaml

src/Documentation/reference/task/doctrine_writer_task.md renamed to src/Documentation/reference/task/doctrine_updater_task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Write a Doctrine entity to the database.
66
Task reference
77
--------------
88

9-
* **Service**: `CleverAge\ProcessBundle\Addon\Doctrine\Task\EntityManager\DoctrineWriterTask`
9+
* **Service**: `CleverAge\DoctrineProcessBundle\Task\Database\DatabaseUpdaterTask`
1010

1111
Accepted inputs
1212
---------------

0 commit comments

Comments
 (0)