42 lines
710 B
PHP
42 lines
710 B
PHP
|
|
<?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';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @var bool
|
||
|
|
*/
|
||
|
|
public $timestamps = false;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ManyToOne
|
||
|
|
* PanierContent -> Panier
|
||
|
|
*/
|
||
|
|
public function panier()
|
||
|
|
{
|
||
|
|
return $this->belongsTo('App\Panier', 'panier_content_panierId', 'panier_content_id');
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ManyToOne
|
||
|
|
* PanierContent -> Coupon
|
||
|
|
*/
|
||
|
|
public function coupon()
|
||
|
|
{
|
||
|
|
return $this->belongsTo('App\Coupon', 'panier_content_couponId');
|
||
|
|
}
|
||
|
|
}
|