| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- declare(strict_types=1);
- namespace App\Entity\Shop;
- use ApiPlatform\Metadata\ApiResource;
- use App\Entity\Access\Access;
- use App\Entity\Organization\Organization;
- use Doctrine\ORM\Mapping as ORM;
- #[ApiResource(operations: [])]
- #[ORM\Entity]
- class Orders
- {
- #[ORM\Id]
- #[ORM\Column(length: 100)]
- protected string $uuid;
- #[ORM\ManyToOne(targetEntity: Organization::class, cascade: [], inversedBy: 'orders')]
- protected Organization $organization;
- #[ORM\ManyToOne(targetEntity: Access::class, cascade: [], inversedBy: 'orders')]
- protected ?Access $access;
- function getUuid(): mixed
- {
- return $this->uuid;
- }
- function setUuid(mixed $uuid): self
- {
- $this->uuid = $uuid;
- return $this;
- }
- function getOrganization(): Organization
- {
- return $this->organization;
- }
- function setOrganization(Organization $organization): self
- {
- $this->organization = $organization;
- return $this;
- }
- function getAccess(): ?Access
- {
- return $this->access;
- }
- function setAccess(?Access $access): self
- {
- $this->access = $access;
- return $this;
- }
- }
|