Solved some naming bugs

This commit is contained in:
Kevin Frantz 2018-11-25 23:38:22 +01:00
parent 6be1a09b30
commit 7cf162bb6a
6 changed files with 8 additions and 7 deletions

View File

@ -2,7 +2,7 @@
namespace App\Entity\Attribut; namespace App\Entity\Attribut;
use App\Entity\Meta\Relation\CreatorRelationInterface; use App\Entity\Meta\Relation\Parent\CreatorRelationInterface;
trait CreatorRelationAttribut trait CreatorRelationAttribut
{ {

View File

@ -2,7 +2,7 @@
namespace App\Entity\Attribut; namespace App\Entity\Attribut;
use App\Entity\Meta\Relation\CreatorRelationInterface; use App\Entity\Meta\Relation\Parent\CreatorRelationInterface;
interface CreatorRelationAttributInterface interface CreatorRelationAttributInterface
{ {

View File

@ -4,14 +4,13 @@ namespace App\Entity\Meta\Relation\Parent;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Collection;
use App\Entity\Meta\Relation\CreatorRelationInterface;
use App\Entity\Source\SourceInterface; use App\Entity\Source\SourceInterface;
/** /**
* @author kevinfrantz * @author kevinfrantz
* @ORM\Entity() * @ORM\Entity()
*/ */
class CreatorRelation extends AbstractParentRelation class CreatorRelation extends AbstractParentRelation implements CreatorRelationInterface
{ {
/** /**
* @ORM\OneToOne(targetEntity="App\Entity\Source\AbstractSource",cascade={"persist", "remove"}) * @ORM\OneToOne(targetEntity="App\Entity\Source\AbstractSource",cascade={"persist", "remove"})

View File

@ -1,6 +1,8 @@
<?php <?php
namespace App\Entity\Meta\Relation; namespace App\Entity\Meta\Relation\Parent;
use App\Entity\Meta\Relation\RelationInterface;
interface CreatorRelationInterface extends RelationInterface interface CreatorRelationInterface extends RelationInterface
{ {

View File

@ -5,7 +5,7 @@ namespace App\Tests\Unit\Entity\Attribut;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use App\Entity\Attribut\CreatorRelationAttributInterface; use App\Entity\Attribut\CreatorRelationAttributInterface;
use App\Entity\Attribut\CreatorRelationAttribut; use App\Entity\Attribut\CreatorRelationAttribut;
use App\Entity\Meta\Relation\CreatorRelationInterface; use App\Entity\Meta\Relation\Parent\CreatorRelationInterface;
class CreatorRelationAttributTest extends TestCase class CreatorRelationAttributTest extends TestCase
{ {

View File

@ -3,7 +3,7 @@
namespace App\Tests\Unit\Entity\Attribut; namespace App\Tests\Unit\Entity\Attribut;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use App\Entity\Meta\RelationInterface; use App\Entity\Meta\Relation\RelationInterface;
use App\Entity\Attribut\RelationAttributInterface; use App\Entity\Attribut\RelationAttributInterface;
use App\Entity\Attribut\RelationAttribut; use App\Entity\Attribut\RelationAttribut;