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

Model()->find() return NULL for existing row #2306

Closed
Workoverflow opened this issue Oct 6, 2019 · 3 comments
Closed

Model()->find() return NULL for existing row #2306

Workoverflow opened this issue Oct 6, 2019 · 3 comments

Comments

@Workoverflow
Copy link
Contributor

Direction
Hi! I have faced with problem with Model()->find() and Model()->findAll(). If i call ones of this methods i get null. It's doesn't work after update to 4.0.0-rc.2.1 with composer.

image

image

Describe the bug
Model()->find() and Model()->findAll() doesn't work.

CodeIgniter 4 version
4.0.0-rc.2.1

Affected module(s)
vendor/codeigniter4/framework/system/Model.php

Context

  • OS: MacOS 10.13.6
  • Web server Nginx
  • PHP version 7.2-fpm
@Workoverflow Workoverflow changed the title Bug: Model()->find() return NULL for existing row Model()->find() return NULL for existing row Oct 6, 2019
@jim-parry
Copy link
Contributor

The Model class has been extensively tested, and it is more likely that you are doing something wrong. Please raise this as a support thread on the foru, with code and not images ... enough code that someone can point out the problem.
Thanks.

@anRoswell
Copy link

Me pasa exactamente lo mismo, no return null a pesar de existir registros...
Exactly the same happens to me, returns null despite existing

@lonnieezell
Copy link
Member

@anRoswell Your best bet is to ask for advice on the forums.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants