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 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