* @example Using it in DQL with path and value: "SELECT JSONB_INSERT(e.jsonbData, '{country}', '{\"iso_3166_a3_code\":\"BGR\"}') FROM Entity e"
22
* @example Using it in DQL with create_if_missing flag: "SELECT JSONB_INSERT(e.jsonbData, '{country}', '{\"iso_3166_a3_code\":\"BGR\"}', true) FROM Entity e"
The trait MartinGeorgiev\Doctrine\...\BooleanValidationTrait requires the property $value which is not provided by MartinGeorgiev\Doctrine\...T\Functions\JsonbInsert.
Loading history...
27
28
5
protected function getNodeMappingPattern(): array
29
{
30
5
return ['StringPrimary'];
31
}
32
33
5
protected function getFunctionName(): string
34
{
35
5
return 'jsonb_insert';
36
}
37
38
5
protected function getMinArgumentCount(): int
39
{
40
5
return 3;
41
}
42
43
5
protected function getMaxArgumentCount(): int
44
{
45
5
return 4;
46
}
47
48
4
protected function validateArguments(Node ...$arguments): void
49
{
50
4
parent::validateArguments(...$arguments);
51
52
// Validate that the fourth parameter is a valid boolean if provided