src/Entity/JobWorker.php line 22
<?phpnamespace App\Entity;use ApiPlatform\Metadata\ApiResource;use App\Repository\JobWorkerRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use ApiPlatform\Metadata\ApiFilter;use ApiPlatform\Doctrine\Orm\Filter\SearchFilter;use Symfony\Component\Serializer\Annotation\Groups;use Symfony\Component\Serializer\Annotation\MaxDepth;use ApiPlatform\Core\Annotation\ApiProperty;#[ORM\Entity(repositoryClass: JobWorkerRepository::class)]#[ApiResource(normalizationContext: ['groups' => ['job_woker:read']],denormalizationContext: ['groups' => ['job_woker:write']],order: ['id' => 'DESC'],)]class JobWorker{#[Groups(['job_woker:read', 'job_woker:write', 'job:read', 'job:write', 'worker:read', 'worker:write', 'account_worker:read', 'account:read', 'read', 'account:write', ])]#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[Groups(['job_woker:read', 'job_woker:write', 'worker:read', 'worker:write', 'account_worker:read', 'account:read', 'read', 'account:write', ])]#[ORM\ManyToOne(inversedBy: 'jobWorkers')]private ?Jobs $job = null;#[Groups(['job_woker:read', 'job_woker:write', 'job:read', 'job:write', 'account:read', 'read', 'account:write', ])]#[ORM\ManyToOne(inversedBy: 'jobWorkers')]private ?Workers $worker = null;#[Groups(['job_woker:read', 'job_woker:write', 'job:read', 'job:write', 'worker:read', 'worker:write', 'account_worker:read', 'account:read', 'read', 'account:write', ])]#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $description = null;#[Groups(['job_woker:read', 'job_woker:write', 'job:read', 'job:write', 'worker:read', 'worker:write', 'account_worker:read', 'account:read', 'read', 'account:write', ])]#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $dateJob = null;public function getId(): ?int{return $this->id;}public function getJob(): ?Jobs{return $this->job;}public function setJob(?Jobs $job): self{$this->job = $job;return $this;}public function getWorker(): ?Workers{return $this->worker;}public function setWorker(?Workers $worker): self{$this->worker = $worker;return $this;}public function getDescription(): ?string{return $this->description;}public function setDescription(?string $description): self{$this->description = $description;return $this;}public function getDateJob(): ?\DateTimeInterface{return $this->dateJob;}public function setDateJob(?\DateTimeInterface $dateJob): self{$this->dateJob = $dateJob;return $this;}}