YiiHaa Webdevelopment blog about Yii-framework and more


Validate unique constraints with more then one attribute

Posted by martijn

Yii comes with bucket of validators including a unique validator which validates whether an attribute value is unique in the corresponding database table. But what if your database unique constraint contains more than one attribute?