codeigniter4 / CodeIgniter4

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
5.35k stars 1.9k forks source link

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

Closed Workoverflow closed 5 years ago

Workoverflow commented 5 years ago

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

jim-parry commented 5 years ago

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 commented 4 years ago

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

lonnieezell commented 4 years ago

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