mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Implemented tests for UserRepository and mapped data schema
This commit is contained in:
@@ -25,6 +25,7 @@ final class Law extends AbstractMeta implements LawInterface
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->rights = new ArrayCollection();
|
||||
}
|
||||
}
|
||||
|
@@ -54,7 +54,7 @@ final class Relation extends AbstractMeta implements RelationInterface
|
||||
|
||||
/**
|
||||
* @ORM\OneToOne(targetEntity="App\Entity\Source\AbstractSource",cascade={"persist", "remove"})
|
||||
* @ORM\JoinColumn(name="source_id", referencedColumnName="id")
|
||||
* @ORM\JoinColumn(name="source_id", referencedColumnName="id",onDelete="CASCADE")
|
||||
*
|
||||
* @var SourceInterface
|
||||
*/
|
||||
@@ -70,6 +70,7 @@ final class Relation extends AbstractMeta implements RelationInterface
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->law = new Law();
|
||||
$this->parents = new ArrayCollection();
|
||||
$this->childs = new ArrayCollection();
|
||||
|
Reference in New Issue
Block a user