20], [['report_type'], 'string', 'max' => 50], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'id_case' => 'Id Case', 'pathologist_id' => 'Pathologist ID', 'report_type' => 'Report Type', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'created_by' => 'Created By', 'updated_by' => 'Updated By', ]; } /** * @return \yii\db\ActiveQuery */ public function getPathologistCo() { return $this->hasOne(User::class, ['id' => 'pathologist_id']); } }