Welcome Guest, Not a member yet? Register   Sign In
Splitting responsibilities between controller and model
#5

In my opinion, the Entity is the most opinionated part of CI4.

It is designed quite differently from plain PHP objects and should be considered carefully before deciding whether to use it.
Use it only if you think the features are necessary and quite useful.

Also, if processing speed is important, you should benchmark and make your decision, as Entity will slow down processing.
In PHP, objects cost more than arrays and are much slower when using magic methods.
Therefore, using Entity may result in a significant performance loss.
Reply


Messages In This Thread
RE: Splitting responsibilities between controller and model - by kenjis - 03-04-2024, 06:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB