Re: HABTM and $validate: ensure at least one value was selected

2006-10-27 Thread DaRollingHobbit
I do agree that a more complex validation routine should be use but my real problem is I can't trigger even this simple one. Due to the fact my profile list is generated by my habtm relationship, I need to keep the name Profile/Profile. But doing so, the error handling doesn't recognise it as the

Re: HABTM and $validate: ensure at least one value was selected

2006-10-26 Thread akaihola
The VALID_NOT_EMPTY constant is just a regular expression for validating strings. I think you'll need a more customized validation mechanism to do what you want. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

HABTM and $validate: ensure at least one value was selected

2006-10-25 Thread DaRollingHobbit
Good evening/morning, I'm fairly new to cakePhp and partially succedd in setting up an HABTM relationship between my user and profile table. When I create a user, I can choose one or several profiles among the available ones and when I save everything goes fine EXCEPT I couldn't find out how to