public function getCategory() { return $this->hasOne(AccCat::className(), array('id' => 'cat_id')); }