Skip to content

Question: Reserved words and quoting #11046

@boesing

Description

@boesing
Q A
Version any

Support Question

I've stumbled over https://www.doctrine-project.org/projects/doctrine-orm/en/2.16/reference/basic-mapping.html#quoting-reserved-words which says that one has to quote columns (and I guess also table names?) since doctrine does not quote these on its own.

What I wonder is, what is the purpose of the reserved words per PHP version then if its not to quote stuff which is reserved.
Is that documentation still up2date or did something change meanwhile?

Does this also apply to table names for MySQL 8?

#[Table(name:"`lead`")]

https://github.com/doctrine/dbal/blob/45941c67dd0505dab2fb970786d93055b7cbd2b6/src/Platforms/Keywords/MySQL80Keywords.php#L55

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions