Implemented PureSource

This commit is contained in:
Kevin Frantz
2019-01-04 21:28:21 +01:00
parent e335544808
commit 74c404a9ce
6 changed files with 118 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ use Doctrine\ORM\EntityManagerInterface;
*
* @author kevinfrantz
*/
class DefaultController extends AbstractEntityController
final class DefaultController extends AbstractEntityController
{
/**
* @todo Optimize function!

View File

@@ -32,6 +32,7 @@ use App\Entity\Meta\Relation\Member\MemberRelationInterface;
* @ORM\InheritanceType("JOINED")
* @ORM\DiscriminatorColumn(name="discr", type="string")
* @ORM\DiscriminatorMap({
* "pure" = "PureSource",
* "text" = "App\Entity\Source\Primitive\Text\TextSource",
* "operation"="App\Entity\Source\Operation\AbstractOperation",
* "user" = "App\Entity\Source\Complex\UserSource",

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Entity\Source;
use Doctrine\ORM\Mapping as ORM;
/**
* This class represents a source with no additional attributes
* Never inhiere from this!
* Use instead AbstractSource!
*
* @author kevinfrantz
* @ORM\Entity
*/
class PureSource extends AbstractSource implements PureSourceInterface
{
public function __construct()
{
parent::__construct();
}
}

View File

@@ -0,0 +1,10 @@
<?php
namespace App\Entity\Source;
/**
* @author kevinfrantz
*/
interface PureSourceInterface extends SourceInterface
{
}