Model::afterFind() not called for associated models

2007-12-18 Thread [rob desbois]
Hi, I'm trying to design my app to have fat models and skinny controllers where possible but having a problem with one particular part of that: retrieval of associated models. I have models Foo and Bar, where (Foo hasOne Bar) and (Bar belongsTo Foo), which map to DB tables 'foos' and 'bars'

Re: How do I retrieve this model's alias?

2007-12-13 Thread [rob desbois]
is a string which contains its alias (surprise!) On Dec 11, 12:15 pm, [rob desbois] [EMAIL PROTECTED] wrote: Hi, I have some code looking likehttp://bin.cakephp.org/view/11696180 Basically, my Configuration model aliases an associated Mtie model to ExceptionMask. In implementing Mtie

How do I retrieve this model's alias?

2007-12-11 Thread [rob desbois]
Hi, I have some code looking like http://bin.cakephp.org/view/11696180 Basically, my Configuration model aliases an associated Mtie model to ExceptionMask. In implementing Mtie::afterFind($results) I discovered that $results uses the alias ExceptionMask instead of the model name Mtie, as would