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: undefined model method should throw exception #2688

Closed
orfaust opened this issue Mar 11, 2020 · 0 comments · Fixed by #2691
Closed

Bug: undefined model method should throw exception #2688

orfaust opened this issue Mar 11, 2020 · 0 comments · Fixed by #2691
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@orfaust
Copy link

orfaust commented Mar 11, 2020

CI Model prevents exception when you call a model->method that hasn't been defined

reproduce with:
model('ExistingModel')->undefinedMethod();

response should be "Exception: Call to undefined method App\Models\ExistingModel::undefinedMethod"

Here is a temporary FIX https://forum.codeigniter.com/thread-75720.html

@orfaust orfaust added the bug Verified issues on the current code behavior or pull requests that will fix them label Mar 11, 2020
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