yiisoft/yii — pull request #2988 by mathzol (2013-10-24 11:20:54+00:00)
Title: Scopes in validators

With this, now you can use scopes in rules (exist, unique) where there is criteria.