Skip to content

Use the update() in BaseBuilder method #1414

Description

@bangbangda

name: Bug report
about: Call the update method in the Model


Describe the bug
Controller file $userModel->where(['uuid' => '20181106004'])->update(['user_name' => 'bangbangda']);
Expect to call the update method of BaseBuilder. but executed the Model update method.
and an error will occur.

CodeIgniter 4 version
CodeIgniter 4.0.0 alpha.2

Affected module(s)
Model

Repair plan
Update line 1443 of /system/Model.php file:
if ($name !== 'builder' && $result instanceof BaseBuilder)
ok?

Context

  • OS: [e.g. Mac os 10.14]
  • Web server [e.g. Apache 1.13.10]
  • PHP version [e.g. 7.2]

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