<?php
declare(strict_types=1);
namespace App\Entity\Customer;
use App\Entity\LicenceFile;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping\MappedSuperclass;
use Doctrine\ORM\Mapping\Table;
use Sylius\Component\Core\Model\Customer as BaseCustomer;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity()
* @Table(name="sylius_customer")
* @UniqueEntity(fields={"pseudo"},message="Un utilisateur a déjà ce pseudo",ignoreNull=true,entityClass="App\Entity\Customer\Customer",repositoryMethod="findByPseudos")
*/
class Customer extends BaseCustomer
{
public function __construct()
{
parent::__construct();
}
/** @ORM\Column(type="string", length=255))
*/
protected $pseudo;
public function getPseudo(): ?string
{
return $this->pseudo;
}
public function setPseudo(?string $pseudo): void
{
$this->pseudo = $pseudo;
}
}