infinito/application/src/Entity/AbstractSource.php

27 lines
628 B
PHP
Raw Normal View History

2018-09-05 15:46:14 +02:00
<?php
namespace App\Entity;
2018-09-06 14:03:08 +02:00
use App\Entity\Attribut\IdAttribut;
use App\Entity\Attribut\NodeAttribut;
use Doctrine\ORM\Mapping as ORM;
2018-09-06 12:58:36 +02:00
2018-09-05 15:46:14 +02:00
/**
2018-09-06 14:52:01 +02:00
*
2018-09-05 15:46:14 +02:00
* @author kevinfrantz
2018-09-06 13:52:34 +02:00
* @see https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/inheritance-mapping.html
2018-09-06 14:52:01 +02:00
* @ORM\Entity
* @ORM\InheritanceType("JOINED")
* @ORM\DiscriminatorColumn(name="discr", type="string")
* @ORM\DiscriminatorMap({"user" = "User"})
2018-09-05 15:46:14 +02:00
*/
2018-09-06 12:58:36 +02:00
abstract class AbstractSource implements SourceInterface
2018-09-05 15:46:14 +02:00
{
2018-09-06 12:58:36 +02:00
use IdAttribut,NodeAttribut;
2018-09-05 15:46:14 +02:00
/**
*
* @var ConfigurationInterface
*/
protected $configuration;
}