Scandal
Well-known member
Hello all!
Let's say we have a JSON_ARRAY column (entity) and we need to specify allowedValues.
How could be achieved?
Example:
The above example of allowedValues will work with STR type, but not for JSON_ARRAY.
Any idea?
Let's say we have a JSON_ARRAY column (entity) and we need to specify allowedValues.
How could be achieved?
Example:
PHP:
$structure->columns = [
'user_id' => ['type' => self::UINT, 'required' => true],
'days' => ['type' => self::JSON_ARRAY, 'default' => [],
'allowedValues' => ['', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']]
];
Any idea?