Hi,

I'm using nightly builds from 1.2.x.x branch.

My main model Item have this associations:
Item hasOne Article
Item hasOne Photo
Item hasAndBelongsToMany Tag
...

In a form I have these fields :
data['Item']['id'] (it's results on a form input TEXT)
data['Item']['title'] (it's results on a form input TEXT)
data['Article']['legend'] (it's results on a form input TEXT)
data['Photo']['credits'] (it's results on a form input TEXT)
data['Tag']['Tag'] (it's results on a form SELECT multiple)


Apparently, the Model::saveAll() method does not save the HABTM, even
this method call itself the save() method...

At this point I make a $this->Item->save($this->data) and after a
$this->Item->saveAll($this->data).
That's works fine but problems occur when I want validate and display
error...

So how can I save all fields in one call and manage correctly
validations and error messages?




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