Skip to content

Commit

Permalink
add nested new in EBNF documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
eltharin committed Oct 2, 2024
1 parent 6f93ceb commit 7f0a181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/reference/dql-doctrine-query-language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,7 @@ Select Expressions
PartialObjectExpression ::= "PARTIAL" IdentificationVariable "." PartialFieldSet
PartialFieldSet ::= "{" SimpleStateField {"," SimpleStateField}* "}"
NewObjectExpression ::= "NEW" AbstractSchemaName "(" NewObjectArg {"," NewObjectArg}* ")"
NewObjectArg ::= ScalarExpression | "(" Subselect ")"
NewObjectArg ::= ScalarExpression | "(" Subselect ")" | NewObjectExpression
Conditional Expressions
~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1765,7 +1765,7 @@ public function NewObjectExpression(): AST\NewObjectExpression
}

/**
* NewObjectArg ::= ScalarExpression | "(" Subselect ")"
* NewObjectArg ::= ScalarExpression | "(" Subselect ")" | NewObjectExpression
*/
public function NewObjectArg(): mixed
{
Expand Down

0 comments on commit 7f0a181

Please sign in to comment.