File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -193,13 +193,13 @@ For instance:
193
193
CREATE TABLE `products ` (
194
194
` id` INT UNSIGNED AUTO_INCREMENT NOT NULL ,
195
195
` 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 ' ,
197
197
PRIMARY KEY (` id` )
198
198
)
199
199
```
200
200
201
201
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.
203
203
204
204
The @Json annotations
205
205
---------------------
You can’t perform that action at this time.
0 commit comments