Skip to content

Conversation

@TomBerriot
Copy link

The use of Literal was preventing usage of doctrine input parameters as :myQueryInputParameter

So to allow its use I changed Literals to StringPrimary accepting more diverse parameters including InputParameter and that seemed already well used in code base.

StringPrimary ::= StateFieldPathExpression | string | InputParameter | FunctionsReturningStrings | AggregateExpression | CaseExpression

Literal ::= string | char | integer | float | boolean

https://www.doctrine-project.org/projects/doctrine-orm/en/2.16/reference/dql-doctrine-query-language.html

The use of Literal was preventing usage of doctrine input parameters as `:myQueryInputParameter`

So to allow its use I changed Literals to StringPrimary accepting more diverse parameters including InputParameter and that seemed already well used in code base.

> StringPrimary          ::= StateFieldPathExpression | string | InputParameter | FunctionsReturningStrings | AggregateExpression | CaseExpression

> Literal     ::= string | char | integer | float | boolean

https://www.doctrine-project.org/projects/doctrine-orm/en/2.16/reference/dql-doctrine-query-language.html
@martin-georgiev martin-georgiev changed the title Change Literals to Accepting Input Parameters Types Change Literals to accept Input Parameters types Oct 1, 2023
@martin-georgiev martin-georgiev changed the title Change Literals to accept Input Parameters types Change Literal usage to accept InputParameter types Oct 1, 2023
@martin-georgiev martin-georgiev enabled auto-merge (squash) October 1, 2023 21:19
@martin-georgiev
Copy link
Owner

@TomBerriot, thanks for the contribution; however, CI is failing. Can you revise, please?

@allan-simon
Copy link
Contributor

I've replaced this PR by this one #240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants