Welcome Guest, Not a member yet? Register   Sign In
Cast datetime from JSON string?
#11

I can't tell you about it. I like the entity as a class, but looking at the issues it leads to horror.
It is so problematic that it is worth completely reviewing it.

But for now, I'm using it as it is...
Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply
#12

Don't worry. Entity works well most of cases. So it is unlikely to cause any real problems.

However, the internal implementation is a bit difficult to understand because there are too many functions,
and it holds only raw data (data from database) but if you use datetime, it holds Time objects.
Also it is not possible to specify the property types by PHP because Entity does not have real class properties.
Reply
#13

We were discussing that here on the forum, I asked for fill() after the builder() response. I installed get/set on my own and worked fine with the real properties of the class.
Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply
#14

I created issues:
https://github.com/codeigniter4/CodeIgni...ssues/8302
https://github.com/codeigniter4/CodeIgni...ssues/8303
Reply
#15

Thanks.
Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB