Comparing
#9 with
#10
Content
I am going to show you an effective way to validate the uniqueness of multiple columns.
In the following example we have 3 columns
, the combination of which need to be unique: id, category and language.
```php
class Post extends CActiveRecord
{[...]