Skip to content

Commit

Permalink
Generated/Virtual Columns: Insertable / Updateable
Browse files Browse the repository at this point in the history
Refactoring reg. change request
- Fetch not insertable / updateable columns after an insert / update and set them on the entity.
doctrine#5728
  • Loading branch information
mehldau committed Nov 24, 2021
1 parent a154ced commit d105a94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/en/reference/annotations-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,12 @@ Optional attributes:
- **nullable**: Determines if NULL values allowed for this column. If not specified, default value is false.

- **insertable**: Boolean value to determine if the column should be
included when inserting a new row into the underlying entities table. If not specified, default value is true.
included when inserting a new row into the underlying entities table. Reloads the value after inserts or updates
if the value is false. If not specified, default value is true.

- **updateable**: Boolean value to determine if the column should be
included when updating the row of the underlying entities table. If not specified, default value is true.
included when updating the row of the underlying entities table. Reloads the value after inserts or updates
if the value is false. If not specified, default value is true.

- **options**: Array of additional options:

Expand Down
4 changes: 3 additions & 1 deletion docs/en/reference/attributes-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ Optional attributes:
If not specified, default value is ``false``.

- **insertable**: Boolean value to determine if the column should be
included when inserting a new row into the underlying entities table
included when inserting a new row into the underlying entities table.
Reloads the value after inserts or updates if the value is false.
If not specified, default value is ``true``.

- **updateable**: Boolean value to determine if the column should be
included when updating the row of the underlying entities table.
Reloads the value after inserts or updates if the value is false.
If not specified, default value is ``true``.

- **options**: Array of additional options:
Expand Down

0 comments on commit d105a94

Please sign in to comment.