Hi,
I have seen tutorials and example-code using either $this->name or
$this->alias. Which one of preferable?

Example:
$the_id = $this->data[$this->name][$this->primaryKey];
or
$the_id = $this->data[$this->alias][$this->primaryKey];

I am not clear about which one I should use in my AppModel or any
beforeSave or other hooks. The only difference I have noticed myself
is that in 1.2 beta I had problems with one of them in tests... but
both look Ok now.

What's the difference?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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