1 | <?php |
||
17 | class UserMetadata extends CiiModel |
||
|
|||
18 | { |
||
19 | /** |
||
20 | * Returns the static model of the specified AR class. |
||
21 | * @param string $className active record class name. |
||
22 | * @return UserMetadata the static model class |
||
23 | */ |
||
24 | public static function model($className=__CLASS__) |
||
28 | |||
29 | /** |
||
30 | * @return string the associated database table name |
||
31 | */ |
||
32 | public function tableName() |
||
36 | |||
37 | /** |
||
38 | * @return array validation rules for model attributes. |
||
39 | */ |
||
40 | public function rules() |
||
52 | |||
53 | /** |
||
54 | * @return array relational rules. |
||
55 | */ |
||
56 | public function relations() |
||
64 | |||
65 | /** |
||
66 | * @return array customized attribute labels (name=>label) |
||
67 | */ |
||
68 | public function attributeLabels() |
||
80 | |||
81 | /** |
||
82 | * Retrieves a list of models based on the current search/filter conditions. |
||
83 | * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions. |
||
84 | */ |
||
85 | public function search() |
||
101 | } |
||
102 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.