<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* CustomersGroups
*
* @ORM\Table(name="customers_price_groups")
* @ORM\Entity
*/
class CustomerPriceGroup
{
/**
* @var int
*
* @ORM\Column(name="id", type="smallint", nullable=false, options={"unsigned"=true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Customer", inversedBy="priceGroups")
* @ORM\JoinColumn(name="customers_id", referencedColumnName="customers_id", nullable=true, onDelete="CASCADE")
*/
private $customer;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\PriceGroup")
* @ORM\JoinColumn(name="price_group_id", referencedColumnName="id", nullable=true, onDelete="CASCADE")
*/
private $group;
/**
* @ORM\Column(name="sap_id", type="string", length=50, nullable=true, options={"comment"="Code client de SAP"})
*/
private $sapId;
public function getId(): int {
return $this->id;
}
public function getCustomer() {
return $this->customer;
}
public function getGroup() {
return $this->group;
}
public function getSapId() {
return $this->sapId;
}
public function setId(int $id): void {
$this->id = $id;
}
public function setCustomer($customer): void {
$this->customer = $customer;
}
public function setGroup($group): void {
$this->group = $group;
}
public function setSapId($sapId): void {
$this->sapId = $sapId;
}
}