<?php
namespace App\Entity;
use App\Entity\Traits\TimestampableTrait;
use App\Repository\BoiteIdeeRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Uid\Ulid;
/**
* BoiteIdee
*
*/
#[ORM\Table(name: 'boiteidee')]
#[ORM\Entity(repositoryClass: BoiteIdeeRepository::class)]
class BoiteIdee
{
use TimestampableTrait;
#[ORM\Id]
#[ORM\Column(type: 'ulid', unique: true)]
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
#[ORM\CustomIdGenerator(class: 'doctrine.ulid_generator')]
private $id;
/**
* @var string
*
*/
#[ORM\Column(name: 'title', type: 'text', nullable: true)]
private $title;
/**
* @var string
*
*/
#[ORM\Column(name: 'idee', type: 'text', nullable: true)]
private $idee;
/**
* @var AccountingFirm
*
*/
#[ORM\JoinColumn(name: 'FK_cabinet', referencedColumnName: 'id')]
#[ORM\ManyToOne(targetEntity: 'AccountingFirm', inversedBy: 'boiteidee')]
private $accountingFirm;
public function getId(): ?Ulid
{
return $this->id;
}
/**
* @return AccountingFirm
*/
public function getAccountingFirm(): ?AccountingFirm
{
return $this->accountingFirm;
}
/**
* @param AccountingFirm $accountingFirm
* @return BoiteIdee
*/
public function setAccountingFirm(?AccountingFirm $accountingFirm): BoiteIdee
{
$this->accountingFirm = $accountingFirm;
return $this;
}
public function gettitle(): ?string
{
return $this->title;
}
public function settitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getidee(): ?string
{
return $this->idee;
}
public function setidee(?string $idee): self
{
$this->idee = $idee;
return $this;
}
}