mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 14:07:25 +01:00
Fixed schema bugs
This commit is contained in:
parent
fdeaa390d3
commit
e8ac70de59
@ -24,7 +24,7 @@ use App\Entity\Attribut\MembershipsAttribut;
|
|||||||
* @ORM\Table(name="source")
|
* @ORM\Table(name="source")
|
||||||
* @ORM\InheritanceType("JOINED")
|
* @ORM\InheritanceType("JOINED")
|
||||||
* @ORM\DiscriminatorColumn(name="discr", type="string")
|
* @ORM\DiscriminatorColumn(name="discr", type="string")
|
||||||
* @ORM\DiscriminatorMap({"user" = "UserSource","name" = "NameSource","group" = "GroupSource"})
|
* @ORM\DiscriminatorMap({"user" = "UserSource","name" = "NameSource","group" = "App\Entity\Source\Collection\MemberCollectionSource"})
|
||||||
*/
|
*/
|
||||||
abstract class AbstractSource extends AbstractEntity implements SourceInterface
|
abstract class AbstractSource extends AbstractEntity implements SourceInterface
|
||||||
{
|
{
|
||||||
@ -43,7 +43,7 @@ abstract class AbstractSource extends AbstractEntity implements SourceInterface
|
|||||||
* @todo Rename table to use the right schema
|
* @todo Rename table to use the right schema
|
||||||
*
|
*
|
||||||
* @var Collection|MemberCollectionSource[]
|
* @var Collection|MemberCollectionSource[]
|
||||||
* @ORM\ManyToMany(targetEntity="GroupSource",mappedBy="members")
|
* @ORM\ManyToMany(targetEntity="App\Entity\Source\Collection\MemberCollectionSource",mappedBy="members")
|
||||||
*/
|
*/
|
||||||
protected $memberships;
|
protected $memberships;
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ use App\Entity\Source\AbstractSource;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo Implement inhiering classes!
|
* @todo Implement inhiering classes!
|
||||||
* @author kevinfrantz
|
|
||||||
*
|
*
|
||||||
|
* @author kevinfrantz
|
||||||
*/
|
*/
|
||||||
class AbstractCollectionSource extends AbstractSource implements CollectionSourceInterface
|
class AbstractCollectionSource extends AbstractSource implements CollectionSourceInterface
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@ final class MemberCollectionSource extends AbstractCollectionSource implements M
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Collection
|
* @var Collection
|
||||||
* @ORM\ManyToMany(targetEntity="AbstractSource",inversedBy="groups")
|
* @ORM\ManyToMany(targetEntity="App\Entity\Source\AbstractSource",inversedBy="groups")
|
||||||
* @ORM\JoinTable(name="source_group_members")
|
* @ORM\JoinTable(name="source_group_members")
|
||||||
*/
|
*/
|
||||||
protected $members;
|
protected $members;
|
||||||
|
Loading…
Reference in New Issue
Block a user