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