Hi All,

I have a situation where my main User model will also save one of 3 other
Models. The very first model that needs to be saved is "User" and then 0 or
more other models get saved. For example:

if( $this->User->save($this->data) &&
$this->User->Member->save($this->data))
{
    // success
}
else
{
    // error
}

The problem I'm having is that, inside the view, when I do an: echo
$html->tagErrorMsg('Member/field', 'error here');, and validation fails for
that field, the error doesn't get shown. Inside the "else" part above, I did
a:

pr($this->User->Member->validationErrors);

... and indeed the 'field' I was purposely inserting invalid data into is
there. Am I specifying the field name incorrectly in the tagErrorMsg call
above? Of course everything works fine for 'User' validation errors, but not
for any related model like Member in this example.

Thanks in advance.

Regards,
Gonzalo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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