ldc-mesbr-app/app/PanierContent.php

52 lines
913 B
PHP
Raw Normal View History

2019-01-15 14:17:15 +01:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class PanierContent extends Model
{
/**
* @var string
*/
protected $table = 'panier_content';
/**
* @var string
*/
protected $primaryKey = 'panier_content_id';
/**
2025-04-03 09:30:16 +02:00
* @var boolean
2019-01-15 14:17:15 +01:00
*/
public $timestamps = false;
/**
* ManyToOne
* PanierContent -> Panier
*/
public function panier()
{
2019-07-10 14:36:55 +02:00
return $this->belongsTo('App\Panier', 'panier_content_panierId', 'panier_id');
2019-01-15 14:17:15 +01:00
}
/**
* ManyToOne
* PanierContent -> Coupon
*/
public function coupon()
{
return $this->belongsTo('App\Coupon', 'panier_content_couponId');
}
2019-03-05 11:16:56 +01:00
/**
* @var array
*/
protected $fillable = [
'panier_content_panierId',
'panier_content_couponId',
'panier_content_quantity',
2021-04-27 17:29:47 +02:00
'panier_content_printed'
2019-03-05 11:16:56 +01:00
];
2019-01-15 14:17:15 +01:00
}