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

2007-12-13 Thread [rob desbois]
Bah - can't upgrade as this is part of a product :( Thanks for that though. --rob On Dec 12, 10:03 am, grigri <[EMAIL PROTECTED]> wrote: > You should upgrade more often :) > > This was sorted in revision 5904 > :https://trac.cakephp.org/changeset/5904#file13 > > From then onwards, Model::alias

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

2007-12-12 Thread grigri
You should upgrade more often :) This was sorted in revision 5904 : https://trac.cakephp.org/changeset/5904#file13 >From then onwards, Model::alias 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 li

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 be