src/Entity/PointOfSaleAddress.php line 17

Open in your IDE?
  1. <?php
  2.     namespace App\Entity;
  3.     use App\Entity\Interfaces\AddressInterface;
  4.     use App\Repository\PointOfSaleAddressRepository;
  5.     use App\Traits\AddressTrait;
  6.     use Doctrine\ORM\Mapping as ORM;
  7.     use JMS\Serializer\Annotation as Serializer;
  8.     /**
  9.      * @ORM\Entity(repositoryClass=PointOfSaleAddressRepository::class)
  10.      *
  11.      * @Serializer\ExclusionPolicy("ALL")
  12.      */
  13.     class PointOfSaleAddress implements AddressInterface
  14.     {
  15.         use AddressTrait;
  16.         public function __clone()
  17.         {
  18.             if ($this->id) {
  19.                 $this->setId(NULL);
  20.             }
  21.         }
  22.     }