Skip to content

Commit

Permalink
Merge pull request #11619 from eltharin/change_EBNF
Browse files Browse the repository at this point in the history
add nested new in EBNF documentation
  • Loading branch information
greg0ire authored Oct 4, 2024
2 parents 5724e62 + 7f0a181 commit 434b7ce
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 434b7ce

Please sign in to comment.