reports extract
This commit is contained in:
1 parent
28f9f3a87e
commit
a27c8a933e
7 files changed
+734
-65
No files matched your search
@@ -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']);
|
||||
}
|
||||
|
||||
@@ -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']);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user