Is there a way in a model to verify that a record does not exist
already that matches a certain criteria. In the database table are
three columns: id, list_id and product_id. I would like to be able to
tell if there already exists a record with the same list_id AND
product_id as the one being added using the form which would then
produce an error as this would be a duplicate.

Example: I try to add a product with product_id 23 and list_id 12 but
the table already contains a record with this information.

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