ExistValidator reverse?

array('username, username','exist','allowEmpty' => false, 'attributeName' => 'username', 'className' => 'Kullanici'),

Hello :) I’m using this validate array on f rules(), but i want to check it for availability, so if table has that username which is written by user it validates… How can i reverse this or how can i do an username availability check? Should i do it after submit in model?

Thank you

What do you mean by "reverse"? Maybe you are looking for CUniqueValidator?

o yeah :) i m totally newb here sorry, thats exactly uniqueValidator that i look thanks