Yii Framework Forum: Unique Attribute - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Unique Attribute to check uniiqueness for an attribute based on another attribute Rate Topic: -----

#1 User is offline   Aadhira 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 28
  • Joined: 06-February 13

Posted 13 February 2013 - 05:36 AM

hi all,

i had two attributes in a table ,Group_Name and User_Name,user in one group cant be added to another group ,for this i hav to check the uniqueness of user name in the group choosen ,how can i do this?


thanks in advance :rolleyes:
0

#2 User is offline   redguy 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 820
  • Joined: 02-July 10
  • Location:Central Poland

Posted 13 February 2013 - 06:16 AM

this is standard case of validating uniqness of multiple column combination.
try to use validator like this one: http://www.yiiframew...lumns-validate/
red
0

#3 User is offline   Aadhira 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 28
  • Joined: 06-February 13

Posted 13 February 2013 - 06:36 AM

View Postredguy, on 13 February 2013 - 06:16 AM, said:

this is standard case of validating uniqness of multiple column combination.
try to use validator like this one: http://www.yiiframew...lumns-validate/



Thank u ,done :)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users