Skip to content

Models apparently have reserved keywords #11253

Closed
@nsossonko

Description

The following keywords (when used as column names) were found to cause issues with phalcon's models (although I could not find a list in the docs). IMHO they should not cause issues and should be allowed to be used, but at least it should be documented:

group - causes an exception during PHQL parsing as it sees it as meaning GROUP.
transaction - meddles with transactions used when nesting models.
for - Causes error similar to group's.
source - Confuses phalcon to think we are declaring the table source.

Edit: I should note, this is using mysql backend.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions