public function getCategoriesId() { return Yii::app()->getDb()->createCommand()->select('category_id')->from('{{store_product_category}}')->where('product_id = :id', [':id' => $this->id])->queryColumn(); }