src/Entity/BoiteIdee.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\TimestampableTrait;
  4. use App\Repository\BoiteIdeeRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\Uid\Ulid;
  8. /**
  9.  * BoiteIdee
  10.  *
  11.  */
  12. #[ORM\Table(name'boiteidee')]
  13. #[ORM\Entity(repositoryClassBoiteIdeeRepository::class)]
  14. class BoiteIdee
  15. {
  16.     use TimestampableTrait;
  17.     #[ORM\Id]
  18.     #[ORM\Column(type'ulid'uniquetrue)]
  19.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  20.     #[ORM\CustomIdGenerator(class: 'doctrine.ulid_generator')]
  21.     private $id;
  22.     /**
  23.      * @var string
  24.      *
  25.      */
  26.     #[ORM\Column(name'title'type'text'nullabletrue)]
  27.     private $title;
  28.     /**
  29.      * @var string
  30.      *
  31.      */
  32.     #[ORM\Column(name'idee'type'text'nullabletrue)]
  33.     private $idee;
  34.     /**
  35.      * @var AccountingFirm
  36.      *
  37.      */
  38.     #[ORM\JoinColumn(name'FK_cabinet'referencedColumnName'id')]
  39.     #[ORM\ManyToOne(targetEntity'AccountingFirm'inversedBy'boiteidee')]
  40.     private $accountingFirm;
  41.     public function getId(): ?Ulid
  42.     {
  43.         return $this->id;
  44.     }
  45.     /**
  46.      * @return AccountingFirm
  47.      */
  48.     public function getAccountingFirm(): ?AccountingFirm
  49.     {
  50.         return $this->accountingFirm;
  51.     }
  52.     /**
  53.      * @param AccountingFirm $accountingFirm
  54.      * @return BoiteIdee
  55.      */
  56.     public function setAccountingFirm(?AccountingFirm $accountingFirm): BoiteIdee
  57.     {
  58.         $this->accountingFirm $accountingFirm;
  59.         return $this;
  60.     }
  61.     public function gettitle(): ?string
  62.     {
  63.         return $this->title;
  64.     }
  65.     public function settitle(?string $title): self
  66.     {
  67.         $this->title $title;
  68.         return $this;
  69.     }
  70.     public function getidee(): ?string
  71.     {
  72.         return $this->idee;
  73.     }
  74.     public function setidee(?string $idee): self
  75.     {
  76.         $this->idee $idee;
  77.         return $this;
  78.     }
  79. }