Skip to content

$myModel->find(string "value-of-my-primary-key") #1188

Description

@nowackipawel

As comment for find method states:

  • Fetches the row of database from $this->table with a primary key
  • matching $id.

what is not true in case when primary key is a string.
In this case all my rows are returned without any filters instead of desired one.

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