Welcome Guest, Not a member yet? Register   Sign In
Query builder returns all properties as String
#1

The entities are a step in the right direction. Why not create a base entity with the common field types (INT, FLOAT, DATETIME, etc.) for the query builder?
Reply
#2

You can already do that with property casting: https://codeigniter.com/user_guide/model...ty-casting
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply
#3

(11-20-2021, 06:52 AM)LeaReift Wrote: Why not create a base entity with the common field types (INT, FLOAT, DATETIME, etc.) for the query builder?

Good opinion.
Reply
#4

(11-22-2021, 06:48 PM)includebeer Wrote: You can already do that with property casting: https://codeigniter.com/user_guide/model...ty-casting

Exaclty what I meant. But still need to create the entity class. I was wondering if CI can do it in a regular query.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB