setColumn('name', 'string', 20, array('unique' => true)); $class->hasMany('Auth', array('local' => 'id', 'foreign' => 'roleid')); } }