cakephp isUnique for 2 fields?

Posted by jodeci on Stack Overflow See other posts from Stack Overflow or by jodeci
Published on 2010-03-17T09:59:20Z Indexed on 2010/03/17 10:01 UTC
Read the original article Hit count: 177

Filed under:

I have a registration form in which users can fill in two email address (email1 & email2). Marketing's requirement is that they need to be unique (unique as in if we had 10 users, then there would be 10*2=20 unique email address).

The system is already built on cakephp, so what I'd like to know is, is there something similar to the isUnique feature (unique in one field) that can do this right out of the box? Or am I doomed to code this myself? Thanks in advance.

© Stack Overflow or respective owner

Related posts about cakephp