public function type()
 {
     return $this->belongsTo(ProductType::getClass(), 'product_type_id');
 }