Difference between #9 and #10 of
How to validate the uniqueness of multiple columns

Revision #10 has been created by oligalma on Sep 26, 2015, 9:41:12 PM with the memo:

I added "the combination of" before "which need to be unique"
« previous (#9)

Changes

Title unchanged

How to validate the uniqueness of multiple columns

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

unique, unique validator, uniqueness validator, multiple unique columns, multiple primary keys

Content changed

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
{
[...]
2 0
2 followers
Viewed: 18 405 times
Version: 1.1
Category: How-tos
Written by: oligalma
Last updated by: oligalma
Created on: Jan 15, 2015
Last updated: 8 years ago
Update Article

Revisions

View all history