Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Literal usage to accept InputParameter types #158

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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?

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.

None yet

2 participants