src/Entity/BatchResultItem.php line 11
<?phpnamespace App\Entity;use App\Repository\BatchResultItemRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Gedmo\Timestampable\Traits\TimestampableEntity;#[ORM\Entity(repositoryClass: BatchResultItemRepository::class)]class BatchResultItem{use TimestampableEntity;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'batchResultItems')]#[ORM\JoinColumn(nullable: false)]private ?BatchResult $batchResult = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $data = null;public function getId(): ?int{return $this->id;}public function getBatchResult(): ?BatchResult{return $this->batchResult;}public function setBatchResult(?BatchResult $batchResult): static{$this->batchResult = $batchResult;return $this;}public function getData(): ?string{return $this->data;}public function setData(?string $data): static{$this->data = $data;return $this;}// add to stringpublic function __toString(){return sprintf('%s - %s', $this->getCreatedAt()->format('Y-m-d H:i:s'), $this->getData());}}