public function getRegistool() { // ความสัมพันธ์จาก tools ไปหา registools return $this->hasOne(Registools::className(), ['id' => 'registool_id']); }