public function init()
 {
     $this->name = "Управление телефонами";
     $this->modelShowAttribute = "value";
     $this->modelClassName = CmsUserPhone::className();
     parent::init();
 }
Exemple #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCmsUserPhones()
 {
     return $this->hasMany(CmsUserPhone::className(), ['user_id' => 'id']);
 }