Skip to content

Bug: $ObJModel->find(null) returns an array containing all data from the table. #10071

@thirawoot

Description

@thirawoot

PHP Version

8.4

CodeIgniter4 Version

4.7.2

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

Linux

Which server did you use?

apache

Environment

development

Database

MariaDB 11.8.6

What happened?

$Model->find(null) returns an array of the entire table's data. This is unlikely to be what is expected.

Steps to Reproduce

(new AnyModel())->find(null);

Expected Output

null or blank Entity

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions