mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
In between commit refactoring and implementing tests
This commit is contained in:
@@ -12,7 +12,7 @@ use App\Entity\Attribut\RelationAttribut;
|
||||
* @ORM\Table(name="meta_law")
|
||||
* @ORM\Entity(repositoryClass="App\Repository\LawRepository")
|
||||
*/
|
||||
class Law extends AbstractMeta implements LawInterface
|
||||
final class Law extends AbstractMeta implements LawInterface
|
||||
{
|
||||
use RightsAttribute, RelationAttribut;
|
||||
|
||||
@@ -24,15 +24,6 @@ class Law extends AbstractMeta implements LawInterface
|
||||
*/
|
||||
protected $rights;
|
||||
|
||||
/**
|
||||
*
|
||||
* @ORM\OneToOne(targetEntity="Relation",cascade={"persist", "remove"})
|
||||
* @ORM\JoinColumn(name="relation_id", referencedColumnName="id")
|
||||
*
|
||||
* @var RelationInterface
|
||||
*/
|
||||
protected $relation;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->initAllRights();
|
||||
|
@@ -9,6 +9,6 @@ use App\Entity\Method\RelationGrantedInterface;
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface LawInterface extends RightsAttributInterface, RelationGrantedInterface, RelationAttributInterface,MetaInterface
|
||||
interface LawInterface extends RightsAttributInterface, RelationGrantedInterface, MetaInterface
|
||||
{
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@ use App\Entity\Attribut\RelationAttributInterface;
|
||||
* @ORM\Table(name="meta_reciever_group")
|
||||
* @ORM\Entity()
|
||||
*/
|
||||
class RecieverGroup extends AbstractMeta implements RecieverGroupInterface
|
||||
final class RecieverGroup extends AbstractMeta implements RecieverGroupInterface
|
||||
{
|
||||
use RelationAttribut,RecieverAttribut;
|
||||
|
||||
|
@@ -21,7 +21,7 @@ use Doctrine\Common\Collections\Collection;
|
||||
* @ORM\Table(name="meta_relation")
|
||||
* @ORM\Entity()
|
||||
*/
|
||||
class Relation extends AbstractMeta implements RelationInterface
|
||||
final class Relation extends AbstractMeta implements RelationInterface
|
||||
{
|
||||
use IdAttribut,
|
||||
SourceAttribut,
|
||||
@@ -76,6 +76,6 @@ class Relation extends AbstractMeta implements RelationInterface
|
||||
$this->law = new Law();
|
||||
$this->parents = new ArrayCollection();
|
||||
$this->childs = new ArrayCollection();
|
||||
$this->law->setNode($this);
|
||||
//$this->law->setNode($this);
|
||||
}
|
||||
}
|
||||
|
@@ -20,7 +20,7 @@ use App\Entity\Attribut\RelationAttribut;
|
||||
* @ORM\Table(name="meta_right")
|
||||
* @ORM\Entity(repositoryClass="App\Repository\RightRepository")
|
||||
*/
|
||||
class Right extends AbstractMeta implements RightInterface
|
||||
final class Right extends AbstractMeta implements RightInterface
|
||||
{
|
||||
use TypeAttribut,LawAttribut, RelationAttribut, GrantAttribut,ConditionAttribut,RecieverGroupAttribut,LayerAttribut;
|
||||
|
||||
|
Reference in New Issue
Block a user