I need to validate extra fields in a HABTM join table.

Ticket HABTM Shirt with the join table shirts_tickets

This is the shirts_tickets join table with extra fields:

CREATE TABLE `shirts_tickets` (
  `shirt_id` int(11) DEFAULT NULL,
  `ticket_id` int(11) DEFAULT NULL,
  `size` varchar(20) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1

Everything saves fine but I need to validate the data being saved in
the extra fields. Basically, if someone adds a shirt to their ticket I
need to make sure they also enter a size. I've searched everywhere and
have been unable to figure out how to do this.

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