Files
opensem/app/Models/Shop/PriceGenericCategory.php
2021-03-26 15:40:53 +01:00

23 lines
449 B
PHP

<?php
namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
class PriceGenericCategory extends Model
{
protected $guarded = ['id'];
protected $table = 'shop_price_generic_categories';
public function article_family()
{
return $this->belongsTo('App\Models\Shop\ArticleFamily');
}
public function price_generics()
{
return $this->hasMany('App\Models\Shop\PriceGeneric','category_id');
}
}