<?php
namespace App\Entity;
use App\Repository\ProjectdataRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Entity(repositoryClass: ProjectdataRepository::class)]
class Projectdata
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer', nullable: false)]
#[Groups(["projectdata"])]
private $id;
#[ORM\Column(type: 'integer', nullable: false)]
#[Groups(["projectdata"])]
private $project_id;
#[ORM\Column(type: Types::TEXT, nullable: true)]
#[Groups(["projectdata"])]
private $idataselected = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
#[Groups(["projectdata"])]
private $iselected = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
#[Groups(["projectdata"])]
private $iactive = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
#[Groups(["projectdata"])]
private $irank = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
#[Groups(["projectdata"])]
private $ikpifilter = null;
// #[ORM\OneToOne(inversedBy: 'projectData', cascade: ['remove'])]
// private ?Project $project = null;
#[ORM\OneToOne(inversedBy: 'projectdata', orphanRemoval: true)]
#[Groups(["projectdata"])]
private ?Project $project = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
#[Groups(["projectdata"])]
private ?string $icompose = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
#[Groups(["projectdata"])]
private ?string $ipoligon = null;
public function getId(): ?int
{
return $this->id;
}
public function getProjectId(): ?string
{
return $this->project_id;
}
public function setProjectId(?string $project_id): static
{
$this->project_id = $project_id;
return $this;
}
public function getIdataselected(): ?string
{
return $this->idataselected;
}
public function setIdataselected(?string $idataselected): static
{
$this->idataselected = $idataselected;
return $this;
}
public function getIselected(): ?string
{
return $this->iselected;
}
public function setIselected(?string $iselected): static
{
$this->iselected = $iselected;
return $this;
}
public function getIactive(): ?string
{
return $this->iactive;
}
public function setIactive(?string $iactive): static
{
$this->iactive = $iactive;
return $this;
}
public function getIrank(): ?string
{
return $this->irank;
}
public function setIrank(?string $irank): static
{
$this->irank = $irank;
return $this;
}
public function getIkpifilter(): ?string
{
return $this->ikpifilter;
}
public function setIkpifilter(?string $ikpifilter): static
{
$this->ikpifilter = $ikpifilter;
return $this;
}
public function getProject(): ?Project
{
return $this->project;
}
public function setProject(?Project $project): static
{
// unset the owning side of the relation if necessary
if ($project === null && $this->project !== null) {
$this->project->setProjectdata(null);
}
// set the owning side of the relation if necessary
if ($project !== null && $project->getProjectdata() !== $this) {
$project->setProjectdata($this);
}
$this->project = $project;
return $this;
}
public function getIcompose(): ?string
{
return $this->icompose;
}
public function setIcompose(?string $icompose): static
{
$this->icompose = $icompose;
return $this;
}
public function getIpoligon(): ?string
{
return $this->ipoligon;
}
public function setIpoligon(?string $ipoligon): static
{
$this->ipoligon = $ipoligon;
return $this;
}
}