/** * @return \yii\db\ActiveQuery */ public function getIdmatlog() { return $this->hasOne(Matlog::className(), ['matlog_id' => 'id_matlog'])->from(['idmatlog' => Matlog::tableName()]); }
/** * @return \yii\db\ActiveQuery */ public function getMatlogs() { return $this->hasMany(Matlog::className(), ['id_logreport' => 'logreport_id'])->from(['matlogs' => Matlog::tableName()]); }