Entities not uses by model with custom model method |
Your function doesn't return entities because you're calling the query builder. The functions that will return an Entity object are find() and findAll() from the Model class. You can use WHERE clauses with findAll(). I'm not sure about the FIELD() function...
PHP Code: $listePays = $Pays
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Messages In This Thread |
Entities not uses by model with custom model method - by Robin Rumeau - 07-26-2021, 12:27 AM
RE: Entities not uses by model with custom model method - by includebeer - 07-29-2021, 10:01 AM
|