diff --git a/application/src/Entity/Node.php b/application/src/Entity/Node.php index ddbcc3b..07490d2 100644 --- a/application/src/Entity/Node.php +++ b/application/src/Entity/Node.php @@ -27,7 +27,7 @@ class Node extends AbstractEntity implements NodeInterface ChildsAttribut; /** - * @ORM\OneToOne(targetEntity="AbstractSource",cascade={"persist", "remove"}) + * @ORM\OneToOne(targetEntity="App\Entity\Source\AbstractSource",cascade={"persist", "remove"}) * @ORM\JoinColumn(name="source_id", referencedColumnName="id") * * @var SourceInterface diff --git a/application/src/Entity/Right.php b/application/src/Entity/Right.php index b2aa576..da30f6d 100644 --- a/application/src/Entity/Right.php +++ b/application/src/Entity/Right.php @@ -76,7 +76,7 @@ class Right extends AbstractEntity implements RightInterface protected $type; /** - * @ORM\OneToOne(targetEntity="AbstractOperation",cascade={"persist"}) + * @ORM\OneToOne(targetEntity="App\Entity\Source\Operation\AbstractOperation",cascade={"persist"}) * @ORM\JoinColumn(name="operation_id", referencedColumnName="id",nullable=true) * * @var OperationInterface diff --git a/application/src/Entity/Source/AbstractSource.php b/application/src/Entity/Source/AbstractSource.php index 74c4895..9cc1e58 100644 --- a/application/src/Entity/Source/AbstractSource.php +++ b/application/src/Entity/Source/AbstractSource.php @@ -5,7 +5,6 @@ namespace App\Entity\Source; use App\Entity\Attribut\NodeAttribut; use Doctrine\ORM\Mapping as ORM; use JMS\Serializer\Annotation\Exclude; -use App\Entity\Source\SourceInterface; use App\Entity\NodeInterface; use App\Entity\AbstractEntity; @@ -25,7 +24,7 @@ abstract class AbstractSource extends AbstractEntity implements SourceInterface /** * @var NodeInterface - * @ORM\OneToOne(targetEntity="Node",cascade={"persist", "remove"}) + * @ORM\OneToOne(targetEntity="App\Entity\Node",cascade={"persist", "remove"}) * @ORM\JoinColumn(name="node_id", referencedColumnName="id") * @Exclude */ diff --git a/application/src/Entity/Source/UserSource.php b/application/src/Entity/Source/UserSource.php index 3568a43..b37d814 100644 --- a/application/src/Entity/Source/UserSource.php +++ b/application/src/Entity/Source/UserSource.php @@ -6,8 +6,7 @@ use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use App\Entity\Attribut\UserAttribut; use App\Entity\Attribut\NameSourceAttribut; -use App\Entity\Source\UserSourceInterface; -use App\Entity\Source\NameSourceInterface; +use App\Entity\UserInterface; /** * @author kevinfrantz @@ -19,10 +18,10 @@ class UserSource extends AbstractSource implements UserSourceInterface use UserAttribut,NameSourceAttribut; /** - * @ORM\OneToOne(targetEntity="User",cascade={"persist", "remove"}) + * @ORM\OneToOne(targetEntity="App\Entity\User",cascade={"persist", "remove"}) * @ORM\JoinColumn(name="user_id", referencedColumnName="id") * - * @var User + * @var UserInterface */ protected $user; diff --git a/application/src/Entity/User.php b/application/src/Entity/User.php index 88f248e..08f5876 100644 --- a/application/src/Entity/User.php +++ b/application/src/Entity/User.php @@ -21,7 +21,7 @@ class User extends BaseUser implements UserInterface /** * @var UserSourceInterface - * @ORM\OneToOne(targetEntity="UserSource",cascade={"persist", "remove"}) + * @ORM\OneToOne(targetEntity="App\Entity\Source\UserSource",cascade={"persist", "remove"}) * @ORM\JoinColumn(name="source_user_id", referencedColumnName="id") */ protected $source;