Skip to content

Commit 7921845

Browse files
committed
Fixing doc
1 parent 2b6134a commit 7921845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/annotations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ For instance:
193193
CREATE TABLE `products` (
194194
`id` INT UNSIGNED AUTO_INCREMENT NOT NULL,
195195
`data` JSON NOT NULL,
196-
`names_virtual` VARCHAR(20) GENERATED ALWAYS AS (`data` ->> '$.name') NOT NULL COMMENT '@Generated',
196+
`names_virtual` VARCHAR(20) GENERATED ALWAYS AS (`data` ->> '$.name') NOT NULL COMMENT '@ReadOnly',
197197
PRIMARY KEY (`id`)
198198
)
199199
```
200200

201201
Note: TDBM is based in Doctrine DBAL and Doctrine DBAL offers no way of knowing which columns are computed. So each time
202-
you have a generated column in your data model, you will need to put the `@Generated` annotation explicitly.
202+
you have a generated column in your data model, you will need to put the `@ReadOnly` annotation explicitly.
203203

204204
The @Json annotations
205205
---------------------

0 commit comments

Comments
 (0)