hi all,

here is my problem:
I have two models linked by a HABTM relation (Game and GameGenre)
I want each row of my main model (Game) to be linked to at least one
row of the other model (Game have 1..n GameGenre)
how can I check this with form validation rules (multi-select field
representing GameGenre must have at least one value in /games/add
form)

before 1.2 RCs I could do "if (!isset($this->data['GameGenre'])) { /*
error */ }" in the Game controller
but now, submitting an empty form returns "['GameGenre'] => array(1)
{ ['GameGenre'] => string(0) '' }"

is there an eas yway to deal with it?

thanks in advance!

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