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