Welcome Guest, Not a member yet? Register   Sign In
Design Pattern question: how to "merge" Entities and Models?
#3

(08-03-2022, 11:17 PM)ozornick Wrote: AdminModel contains fields from commonFields in the table?
I didn’t quite understand the question, maybe it’s worth looking towards afterFind () to set values.
Your version looks to be working.

Yes, the tables for Admin and AdminGroup contains the same fields for historical reasons. Now with additional requirements we would like to make it possible to "OR" the fields from Admin with zero or more AdminGroup(s).
Reply


Messages In This Thread
RE: Design Pattern question: how to "merge" Entities and Models? - by tgix - 08-04-2022, 02:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB