Пример #1
0
 public function getInfo()
 {
     return $this->hasOne(Info::className(), ['oid' => 'id']);
 }
Пример #2
0
 /**
  * Provides json response for select2 plugin
  */
 public function actionGetSelectionById()
 {
     self::selectionById(Info::className(), 'name');
 }
Пример #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getInfos()
 {
     return $this->hasMany(Info::className(), ['C_ID' => 'C_ID']);
 }
Пример #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getInfos()
 {
     return $this->hasMany(Info::className(), ['user_id' => 'id']);
 }