comanage-dev - [comanage-dev] Re: extended attributes
Subject: COmanage Developers List
List archive
- From: Benn Oshrin <>
- To: Marie Huynh <>
- Cc: comanage-dev <>
- Subject: [comanage-dev] Re: extended attributes
- Date: Mon, 19 Aug 2013 09:43:13 -0400
On 8/16/13 9:10 PM, Marie Huynh wrote:
Cake doesn't automagically grab the extended attributes for copeople and
it looks like it shows up for copersonrole because it gets stapled on in
CoPersonRolesController in beforeFilter(). Is there a reason why the
bindModel() is happening there instead of the model?
Cake can't automagically grab them because the model is dynamically named according to the CO ID. As for why it's done in beforeFilter()... probably because it's older code? It could plausibly be done in a beforeFind() callback instead, although that would obviously require some amount of refactoring.
-Benn-
- [comanage-dev] extended attributes, Marie Huynh, 08/16/2013
- [comanage-dev] Re: extended attributes, Benn Oshrin, 08/19/2013
Archive powered by MHonArc 2.6.16.