| 123456789101112131415161718192021222324252627282930 |
- <?php
- declare(strict_types=1);
- namespace App\Entity\Billing;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Enregistrement d'un produit à facturer par une Organization, un Access ou un EducationalProject
- * Classe de base de @see AccessIntangible, EducationalProjectIntangible
- */
- #[ORM\Entity]
- #[ORM\Table(name: 'BillingIntangible')]
- #[ORM\InheritanceType('SINGLE_TABLE')]
- #[ORM\DiscriminatorColumn(name: 'discr', type: 'string')]
- #[ORM\DiscriminatorMap([
- 'access' => 'AccessIntangible'
- ])]
- abstract class AbstractBillingIntangible{
- #[ORM\Id]
- #[ORM\Column]
- #[ORM\GeneratedValue]
- private ?int $id = null;
- public function getId(): ?int
- {
- return $this->id;
- }
- }
|