12], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'id_case' => 'ID Case', 'stain_id' => 'ผู้ย้อม', 'stain_at' => 'วันที่ย้อม', 'created_by' => 'Created By', 'created_at' => 'Created At', 'updated_by' => 'Updated By', 'updated_at' => 'Updated At', ]; } /** * @return \yii\db\ActiveQuery */ public function getStainBy() { return $this->hasOne(User::class, ['id' => 'stain_id']); } }