示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getT()
 {
     return $this->hasMany(CsUnitsTranslation::className(), ['unit_id' => 'id']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUnitsTranslations()
 {
     return $this->hasMany(CsUnitsTranslation::className(), ['lang_code' => 'code']);
 }