Skip to content

getById() accepts a non-list array and uses just values #570

Open
@hrach

Description

@hrach

Describe the bug

$users->getById(['facebookId' => $fbId]);

produces valid SQL selecting by primary key; this should throw an error, when the array is not a list.

Versions::

  • Orm: 4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions