Noob queston sorry but what's the most elegant way to do this? I have a travel booking system. A person makes a booking and takes other people with him/her. So - LeadPassenger hasMany Booking, and - Booking hasAndBelongsToMany Person (person = everybody who goes on the trip, not necessary lead passenger)
Both LeadPassenger and Person are model Person. I want to make sure that I have a postal address for the lead passenger but it doesn't make sense to gather addresses for the others. Is there a way of doing that by validating in the usual way ie $validate=etc? I can't use the person model to validate because it is doing two things. (lead passengers whose address I need and others whose address I don't care about). So the question is where is the best place to do that validating, and how? Thanks! 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en