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