60, 'operator' => '<'], [['task'], 'string'], [['report_id'], 'exist', 'skipOnError' => true, 'targetClass' => Reports::className(), 'targetAttribute' => ['report_id' => 'id']], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'report_id' => 'Report ID', 'task' => 'Task', 'created_at' => 'Created At', 'status' => 'Status', ]; } /** * @return \yii\db\ActiveQuery */ public function getReport() { return $this->hasOne(Reports::className(), ['id' => 'report_id']); } }