* @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
4
protected function getNodeMappingPattern(): array
29
{
30
4
return ['StringPrimary'];
31
}
32
33
4
protected function getFunctionName(): string
34
{
35
4
return 'jsonb_insert';
36
}
37
38
4
protected function getMinArgumentCount(): int
39
{
40
4
return 3;
41
}
42
43
4
protected function getMaxArgumentCount(): int
44
{
45
4
return 4;
46
}
47
48
3
protected function validateArguments(Node ...$arguments): void
49
{
50
3
parent::validateArguments(...$arguments);
51
52
// Validate that the fourth parameter is a valid boolean if provided