src/Entity/CustomerBpModelAffected.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CustomerBpModelAffectedRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Gedmo\SoftDeleteable\Traits\SoftDeleteableEntity;
  8. use Gedmo\Mapping\Annotation as Gedmo;
  9. /**
  10.  * @ORM\Entity(repositoryClass=CustomerBpModelAffectedRepository::class)
  11.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  12.  */
  13. class CustomerBpModelAffected extends BaseEntity
  14. {
  15.     use SoftDeleteableEntity;
  16.     /**
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue
  19.      * @ORM\Column(type="integer")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=BPModel::class, inversedBy="customerBpModelAffecteds")
  24.      * @ORM\JoinColumn(nullable=false)
  25.      */
  26.     private $bpModel;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="customerBpModelAffecteds")
  29.      * @ORM\JoinColumn(nullable=false)
  30.      */
  31.     private $customer;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getBpModel(): ?BPModel
  37.     {
  38.         return $this->bpModel;
  39.     }
  40.     public function setBpModel(?BPModel $bpModel): self
  41.     {
  42.         $this->bpModel $bpModel;
  43.         return $this;
  44.     }
  45.     public function getCustomer(): ?User
  46.     {
  47.         return $this->customer;
  48.     }
  49.     public function setCustomer(?User $customer): self
  50.     {
  51.         $this->customer $customer;
  52.         return $this;
  53.     }
  54. }