Skip to content

Initialize on Model __construct #556

Description

@daylightstudio

I ran into an issue where I wanted to escape a string for a where condition in a model's method but it was throwing an error in the Connection::_escapeString method because $this->connID was returning false. I noticed I had to call the initialize method first for it to work. Is there a reason why this isn't automatically called in the Model's constructor?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions