src/Flexy/ShopBundle/Entity/Accounting/JournalEntryItem.php line 12
<?phpnamespace App\Flexy\ShopBundle\Entity\Accounting;use ApiPlatform\Metadata\ApiResource;use App\Repository\Flexy\ShopBundle\Entity\Accounting\JournalEntryItemRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: JournalEntryItemRepository::class)]#[ApiResource]class JournalEntryItem{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $createdAt = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $description = null;#[ORM\ManyToOne(inversedBy: 'journalEntryItems')]#[ORM\JoinColumn(nullable: false)]private ?JournalEntry $journalEntry = null;public function getId(): ?int{return $this->id;}public function getCreatedAt(): ?\DateTimeInterface{return $this->createdAt;}public function setCreatedAt(?\DateTimeInterface $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getDescription(): ?string{return $this->description;}public function setDescription(?string $description): self{$this->description = $description;return $this;}public function getJournalEntry(): ?JournalEntry{return $this->journalEntry;}public function setJournalEntry(?JournalEntry $journalEntry): self{$this->journalEntry = $journalEntry;return $this;}}