As far as I can understand from the changes in the model class:
[code]
/**
 * Returns true if all fields pass validation. Will validate
hasAndBelongsToMany associations
 * that use the 'with' key as well. Since __saveMulti is incapable of
exiting a save operation.
 *
 * Will validate the currently set data.  Use Model::set() or
Model::create() to set the active data.
 *
 * @param string $options An optional array of custom options to be
made available in the beforeValidate callback
 * @return boolean True if there are no errors
 * @access public
 * @link http://book.cakephp.org/view/410/Validating-Data-from-the-Controller
 */
        function validates($options = array()) {
                $errors = $this->invalidFields($options);
                if (empty($errors) && $errors !== false) {
                        $errors = $this->__validateWithModels($options);
                }
                if (is_array($errors)) {
                        return count($errors) === 0;
                }
                return $errors;
        }
[/code]

Then the validation errors in the HABTM table, are only returned, if
there are no errors in the other models. In your case, in the data for
the Post or Tag models.

Is that your case?
Enjoy,
   John

On Feb 18, 11:46 am, "rich...@home" <[email protected]> wrote:
> Anyone got any ideas as to why I don't get the validation errors from
> HABTM relationships mentioned above?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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