Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Model::builder() ignores parameter #3793

Closed
MGatner opened this issue Oct 21, 2020 · 0 comments · Fixed by #3794
Closed

Bug: Model::builder() ignores parameter #3793

MGatner opened this issue Oct 21, 2020 · 0 comments · Fixed by #3794
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@MGatner
Copy link
Member

MGatner commented Oct 21, 2020

Describe the bug
Model's builder($tableName) method has a check for an existing shared instance of the builder and, if found, returns it immediately regardless of $tableName.

CodeIgniter 4 version
develop

Affected module(s)
Model

Expected behavior, and steps to reproduce if appropriate

$model = new UserModel();
$builder = $model->builder(); // table = 'users'
$builder = $model->builder('alternate_table'); // table = 'users'

Context

  • OS: Ubuntu 20.04
  • Web server: Apache
  • PHP version: 7.4
@MGatner MGatner added the bug Verified issues on the current code behavior or pull requests that will fix them label Oct 21, 2020
@MGatner MGatner mentioned this issue Oct 21, 2020
5 tasks
@MGatner MGatner linked a pull request Oct 21, 2020 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant