Welcome Guest, Not a member yet? Register   Sign In
Model / Entities relation
#2

(This post was last modified: 02-22-2019, 03:17 AM by puschie. Edit Reason: add docu description )

you need to use the magic setter/getter in your entity to use _options

just change your "public" entity properties to protected.

Docu: "You may have noticed that the User class has all of the properties as protected not public, but you can still access them as if they were public properties. The base class, CodeIgniterEntity, takes care of this for you, as well as providing the ability to check the properties with isset(), or unset() the property."

Note: if you access a public entity properties you ignore mapping, casting and calling custom implementation methods.
Reply


Messages In This Thread
Model / Entities relation - by keulu - 02-20-2019, 02:45 AM
RE: Model / Entities relation - by puschie - 02-22-2019, 03:10 AM
RE: Model / Entities relation - by keulu - 02-22-2019, 07:09 AM
RE: Model / Entities relation - by puschie - 02-25-2019, 07:17 AM
RE: Model / Entities relation - by keulu - 02-26-2019, 11:31 AM
RE: Model / Entities relation - by keulu - 02-26-2019, 01:41 PM
RE: Model / Entities relation - by keulu - 02-27-2019, 11:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB