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 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::afterFind($results) I discovered that $results
> > uses the alias ExceptionMask instead of the model name Mtie, as would
> > be expected.
>
> > How do I find out, in Mtie, what its current alias is?
> > I've tried $this->alias but it is the same as $this->modelToTable and
> > only contains the model-table mappings for the Mtie model's
> > associations.
>
> > My alternative is to iterate through $results, then iterate through
> > each contained array, and look for the required fieldname, but whilst
> > this works it seems my job's being made pointlessly difficult :(
>
> > TIA,
> > --rob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to