Poll: Entity models? You do not have permission to vote in this poll. |
|||
yes | 19 | 43.18% | |
no | 8 | 18.18% | |
maybe | 17 | 38.64% | |
Total | 44 vote(s) | 100% |
* You voted for this item. | [Show Results] |
Entity models? |
(06-12-2015, 07:36 AM)RWCH Wrote:(04-16-2015, 11:31 PM)jlp Wrote: What I was suggesting has nothing to do with ORM. It is just a way of having the existing model be able to use something other than stdClass. The "entity model" would represent one record in the returned result set, and could be whatever you want it to be. Properties would be injected into such an object the same way they are in a stdClass object in a result set, but we would then have a way to do something entity-specific with such objects. I believe that would be the point of such a change. The entity model would be your domain object while the existing model acts, more or less, as a mechanism for retrieving domain objects. This might be similar to using $this->db->custom_result_object($class_name) instead of using $this->db->result() or $this->db->result_array() when returning database results from your model. |
Messages In This Thread |
Entity models? - by jlp - 04-11-2015, 08:41 AM
RE: Entity models? - by albert.freeman - 04-13-2015, 03:40 PM
RE: Entity models? - by RWCH - 04-14-2015, 05:17 AM
RE: Entity models? - by gadelat - 04-14-2015, 05:52 AM
RE: Entity models? - by dmyers - 04-14-2015, 05:56 AM
RE: Entity models? - by sv3tli0 - 04-14-2015, 06:23 AM
RE: Entity models? - by kilishan - 04-16-2015, 09:48 PM
RE: Entity models? - by jlp - 04-16-2015, 11:31 PM
RE: Entity models? - by RWCH - 06-12-2015, 07:36 AM
RE: Entity models? - by mwhitney - 06-15-2015, 08:41 AM
RE: Entity models? - by mwhitney - 04-17-2015, 08:53 AM
RE: Entity models? - by Razican - 04-19-2015, 02:59 PM
RE: Entity models? - by PaulD - 04-20-2015, 07:27 AM
RE: Entity models? - by kilishan - 06-09-2015, 12:04 PM
|