/var/www/vhosts/nabawater/api/modules/v1/models
Edit: /var/www/vhosts/nabawater/api/modules/v1/models/Category.php (1295B)
function(self $model) {
// return $model->order_type !== null ? $model->order_type : '';
// },
// 'category_status',
// 'category_image_path' =>function (self $model) {
// return UploadHelper::getInstance()->get($model->category_image_path);
// },
'category_name',
];
}
/**
*
* @return array
*/
public function getItems()
{
$model = Item::find()->alias('I')
->select(['I.*'])
->where([
'category_id' => $this->category_id,
'item_status' => Item::ACTIVE,
'vendor_id' => $this->vendor_id
]);
Item::selectTranslation($model);
return $model;
}
}