Skip to content

Binding string with apostrophe using QueryBuilder->literal() crash query #745

Closed
@stopsopa

Description

@stopsopa

Error like:

image

When query is build like:

image

Fixed in my case:

image

but i think it should do this automatically internally.
Or there should be method to bind explicitly data like in regular doctrine project:

http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/query-builder.html#binding-parameters-to-your-query

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions