mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 14:07:25 +01:00
Optimized Entity Draft
This commit is contained in:
parent
3d42526698
commit
f9e44deac4
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Entity\attribut\IdAttribut;
|
||||
use App\Entity\attribut\NodeAttribut;
|
||||
use App\Entity\Attribut\IdAttribut;
|
||||
use App\Entity\Attribut\NodeAttribut;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -11,8 +11,8 @@ use App\Entity\NodeInterface;
|
||||
trait NodeAttribut{
|
||||
/**
|
||||
* @var NodeInterface
|
||||
* @OneToOne(targetEntity="Node")
|
||||
* @JoinColumn(name="source", referencedColumnName="id")
|
||||
* @ORM\OneToOne(targetEntity="Node")
|
||||
* @ORM\JoinColumn(name="source", referencedColumnName="id")
|
||||
*/
|
||||
protected $node;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
namespace Entity\Attribut;
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use App\Entity\NodeInterface;
|
||||
|
@ -1,15 +1,17 @@
|
||||
<?php
|
||||
namespace App\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use App\Entity\attribut\IdAttribut;
|
||||
use App\Entity\attribut\SourceAttribut;
|
||||
use Entity\attribut\ParentAttribut;
|
||||
use App\Entity\Attribut\IdAttribut;
|
||||
use App\Entity\Attribut\SourceAttribut;
|
||||
use App\Entity\Attribut\ParentAttribut;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
* @ORM\Table(name="node")
|
||||
* @ORM\Entity(repositoryClass="App\Repository\NodeRepository")
|
||||
*/
|
||||
class Node implements NodeInterface
|
||||
{
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Entity\attribut\NodeAttributInterface;
|
||||
use App\Entity\attribut\IdAttributInterface;
|
||||
use App\Entity\Attribut\NodeAttributInterface;
|
||||
use App\Entity\Attribut\IdAttributInterface;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -2,6 +2,7 @@
|
||||
namespace App\Entity;
|
||||
|
||||
use Symfony\Component\Security\Core\User\UserInterface;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
|
Loading…
Reference in New Issue
Block a user