reports extract

This commit is contained in:
apuc committed 2024-04-03 18:31:17 +03:00
1 parent 28f9f3a87e
commit a27c8a933e
7 files changed
+734 -65

No files matched your search

+1 -1
View File
@@ -106,7 +106,7 @@ class Reports extends \yii\db\ActiveRecord
/**
* @return \yii\db\ActiveQuery
*/
private function getUser(): \yii\db\ActiveQuery
public function getUser(): \yii\db\ActiveQuery
{
return $this->hasOne(User::class, ['id' => 'user_id']);
}
+9 -1
View File
@@ -68,7 +68,15 @@ class ReportsTask extends \yii\db\ActiveRecord
/**
* @return \yii\db\ActiveQuery
*/
public function getReport()
public function getReport(): \yii\db\ActiveQuery
{
return $this->hasOne(Reports::className(), ['id' => 'report_id']);
}
/**
* @return \yii\db\ActiveQuery
*/
public function getReports(): \yii\db\ActiveQuery
{
return $this->hasOne(Reports::className(), ['id' => 'report_id']);
}