@@ -87,10 +87,10 @@ discard block |
||
| 87 | 87 | * @ORM\DiscriminatorMap({"parent" = CTIParent::class, "child" = CTIChild::class}) |
| 88 | 88 | */ |
| 89 | 89 | class CTIParent { |
| 90 | - /** |
|
| 91 | - * @ORM\Id @ORM\Column(type="integer") |
|
| 92 | - * @ORM\GeneratedValue(strategy="AUTO") |
|
| 93 | - */ |
|
| 90 | + /** |
|
| 91 | + * @ORM\Id @ORM\Column(type="integer") |
|
| 92 | + * @ORM\GeneratedValue(strategy="AUTO") |
|
| 93 | + */ |
|
| 94 | 94 | private $id; |
| 95 | 95 | |
| 96 | 96 | /** @ORM\OneToOne(targetEntity=CTIRelated::class, mappedBy="ctiParent") */ |
@@ -114,9 +114,9 @@ discard block |
||
| 114 | 114 | * @ORM\Entity @ORM\Table(name="cti_children") |
| 115 | 115 | */ |
| 116 | 116 | class CTIChild extends CTIParent { |
| 117 | - /** |
|
| 118 | - * @ORM\Column(type="string") |
|
| 119 | - */ |
|
| 117 | + /** |
|
| 118 | + * @ORM\Column(type="string") |
|
| 119 | + */ |
|
| 120 | 120 | private $data; |
| 121 | 121 | |
| 122 | 122 | public function getData() { |
@@ -54,65 +54,65 @@ |
||
| 54 | 54 | /** @ORM\Column(type="string", nullable=false) */ |
| 55 | 55 | protected $name; |
| 56 | 56 | |
| 57 | - /** @ORM\Column(type="string", nullable=true) */ |
|
| 58 | - protected $description; |
|
| 59 | - |
|
| 60 | - /** |
|
| 61 | - * @ORM\ManyToMany(targetEntity=DDC719Group::class, inversedBy="parents") |
|
| 62 | - * @ORM\JoinTable(name="groups_groups", |
|
| 63 | - * joinColumns={@ORM\JoinColumn(name="parent_id", referencedColumnName="id")}, |
|
| 64 | - * inverseJoinColumns={@ORM\JoinColumn(name="child_id", referencedColumnName="id")} |
|
| 65 | - * ) |
|
| 66 | - */ |
|
| 67 | - protected $children; |
|
| 68 | - |
|
| 69 | - /** |
|
| 70 | - * @ORM\ManyToMany(targetEntity=DDC719Group::class, mappedBy="children") |
|
| 71 | - */ |
|
| 72 | - protected $parents; |
|
| 73 | - |
|
| 74 | - /** |
|
| 75 | - * construct |
|
| 76 | - */ |
|
| 77 | - public function __construct() { |
|
| 78 | - parent::__construct(); |
|
| 79 | - |
|
| 80 | - $this->channels = new ArrayCollection(); |
|
| 81 | - $this->children = new ArrayCollection(); |
|
| 82 | - $this->parents = new ArrayCollection(); |
|
| 83 | - } |
|
| 84 | - |
|
| 85 | - /** |
|
| 86 | - * adds group as new child |
|
| 87 | - * |
|
| 88 | - * @param Group $child |
|
| 89 | - */ |
|
| 90 | - public function addGroup(Group $child) { |
|
| 57 | + /** @ORM\Column(type="string", nullable=true) */ |
|
| 58 | + protected $description; |
|
| 59 | + |
|
| 60 | + /** |
|
| 61 | + * @ORM\ManyToMany(targetEntity=DDC719Group::class, inversedBy="parents") |
|
| 62 | + * @ORM\JoinTable(name="groups_groups", |
|
| 63 | + * joinColumns={@ORM\JoinColumn(name="parent_id", referencedColumnName="id")}, |
|
| 64 | + * inverseJoinColumns={@ORM\JoinColumn(name="child_id", referencedColumnName="id")} |
|
| 65 | + * ) |
|
| 66 | + */ |
|
| 67 | + protected $children; |
|
| 68 | + |
|
| 69 | + /** |
|
| 70 | + * @ORM\ManyToMany(targetEntity=DDC719Group::class, mappedBy="children") |
|
| 71 | + */ |
|
| 72 | + protected $parents; |
|
| 73 | + |
|
| 74 | + /** |
|
| 75 | + * construct |
|
| 76 | + */ |
|
| 77 | + public function __construct() { |
|
| 78 | + parent::__construct(); |
|
| 79 | + |
|
| 80 | + $this->channels = new ArrayCollection(); |
|
| 81 | + $this->children = new ArrayCollection(); |
|
| 82 | + $this->parents = new ArrayCollection(); |
|
| 83 | + } |
|
| 84 | + |
|
| 85 | + /** |
|
| 86 | + * adds group as new child |
|
| 87 | + * |
|
| 88 | + * @param Group $child |
|
| 89 | + */ |
|
| 90 | + public function addGroup(Group $child) { |
|
| 91 | 91 | if ( ! $this->children->contains($child)) { |
| 92 | 92 | $this->children->add($child); |
| 93 | 93 | $child->addGroup($this); |
| 94 | 94 | } |
| 95 | - } |
|
| 96 | - |
|
| 97 | - /** |
|
| 98 | - * adds channel as new child |
|
| 99 | - * |
|
| 100 | - * @param Channel $child |
|
| 101 | - */ |
|
| 102 | - public function addChannel(Channel $child) { |
|
| 95 | + } |
|
| 96 | + |
|
| 97 | + /** |
|
| 98 | + * adds channel as new child |
|
| 99 | + * |
|
| 100 | + * @param Channel $child |
|
| 101 | + */ |
|
| 102 | + public function addChannel(Channel $child) { |
|
| 103 | 103 | if ( ! $this->channels->contains($child)) { |
| 104 | 104 | $this->channels->add($child); |
| 105 | 105 | } |
| 106 | - } |
|
| 107 | - |
|
| 108 | - /** |
|
| 109 | - * getter & setter |
|
| 110 | - */ |
|
| 111 | - public function getName() { return $this->name; } |
|
| 112 | - public function setName($name) { $this->name = $name; } |
|
| 113 | - public function getDescription() { return $this->description; } |
|
| 114 | - public function setDescription($description) { $this->description = $description; } |
|
| 115 | - public function getChildren() { return $this->children; } |
|
| 116 | - public function getParents() { return $this->parents; } |
|
| 117 | - public function getChannels() { return $this->channels; } |
|
| 106 | + } |
|
| 107 | + |
|
| 108 | + /** |
|
| 109 | + * getter & setter |
|
| 110 | + */ |
|
| 111 | + public function getName() { return $this->name; } |
|
| 112 | + public function setName($name) { $this->name = $name; } |
|
| 113 | + public function getDescription() { return $this->description; } |
|
| 114 | + public function setDescription($description) { $this->description = $description; } |
|
| 115 | + public function getChildren() { return $this->children; } |
|
| 116 | + public function getParents() { return $this->parents; } |
|
| 117 | + public function getChannels() { return $this->channels; } |
|
| 118 | 118 | } |
@@ -27,8 +27,8 @@ discard block |
||
| 27 | 27 | { |
| 28 | 28 | $qb = $this->em->createQueryBuilder(); |
| 29 | 29 | $qb->select('p', 'r') |
| 30 | - ->from(__NAMESPACE__ . '\DDC698Privilege', 'p') |
|
| 31 | - ->leftJoin('p.roles', 'r'); |
|
| 30 | + ->from(__NAMESPACE__ . '\DDC698Privilege', 'p') |
|
| 31 | + ->leftJoin('p.roles', 'r'); |
|
| 32 | 32 | |
| 33 | 33 | self::assertSQLEquals( |
| 34 | 34 | 'SELECT t0."privilegeID" AS c0, t0."name" AS c1, t1."roleID" AS c2, t1."name" AS c3, t1."shortName" AS c4 FROM "Privileges" t0 LEFT JOIN "RolePrivileges" t2 ON t0."privilegeID" = t2."privilegeID" LEFT JOIN "Roles" t1 ON t1."roleID" = t2."roleID"', |
@@ -44,37 +44,37 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | class DDC698Role |
| 46 | 46 | { |
| 47 | - /** |
|
| 48 | - * @ORM\Id @ORM\Column(name="roleID", type="integer") |
|
| 49 | - * @ORM\GeneratedValue(strategy="AUTO") |
|
| 50 | - * |
|
| 51 | - */ |
|
| 52 | - protected $roleID; |
|
| 53 | - |
|
| 54 | - /** |
|
| 55 | - * @ORM\Column(name="name", type="string", length=45) |
|
| 56 | - * |
|
| 57 | - * |
|
| 58 | - */ |
|
| 59 | - protected $name; |
|
| 60 | - |
|
| 61 | - /** |
|
| 62 | - * @ORM\Column(name="shortName", type="string", length=45) |
|
| 63 | - * |
|
| 64 | - * |
|
| 65 | - */ |
|
| 66 | - protected $shortName; |
|
| 67 | - |
|
| 68 | - |
|
| 69 | - |
|
| 70 | - /** |
|
| 71 | - * @ORM\ManyToMany(targetEntity=DDC698Privilege::class, inversedBy="roles") |
|
| 72 | - * @ORM\JoinTable(name="RolePrivileges", |
|
| 73 | - * joinColumns={@ORM\JoinColumn(name="roleID", referencedColumnName="roleID")}, |
|
| 74 | - * inverseJoinColumns={@ORM\JoinColumn(name="privilegeID", referencedColumnName="privilegeID")} |
|
| 75 | - * ) |
|
| 76 | - */ |
|
| 77 | - protected $privilege; |
|
| 47 | + /** |
|
| 48 | + * @ORM\Id @ORM\Column(name="roleID", type="integer") |
|
| 49 | + * @ORM\GeneratedValue(strategy="AUTO") |
|
| 50 | + * |
|
| 51 | + */ |
|
| 52 | + protected $roleID; |
|
| 53 | + |
|
| 54 | + /** |
|
| 55 | + * @ORM\Column(name="name", type="string", length=45) |
|
| 56 | + * |
|
| 57 | + * |
|
| 58 | + */ |
|
| 59 | + protected $name; |
|
| 60 | + |
|
| 61 | + /** |
|
| 62 | + * @ORM\Column(name="shortName", type="string", length=45) |
|
| 63 | + * |
|
| 64 | + * |
|
| 65 | + */ |
|
| 66 | + protected $shortName; |
|
| 67 | + |
|
| 68 | + |
|
| 69 | + |
|
| 70 | + /** |
|
| 71 | + * @ORM\ManyToMany(targetEntity=DDC698Privilege::class, inversedBy="roles") |
|
| 72 | + * @ORM\JoinTable(name="RolePrivileges", |
|
| 73 | + * joinColumns={@ORM\JoinColumn(name="roleID", referencedColumnName="roleID")}, |
|
| 74 | + * inverseJoinColumns={@ORM\JoinColumn(name="privilegeID", referencedColumnName="privilegeID")} |
|
| 75 | + * ) |
|
| 76 | + */ |
|
| 77 | + protected $privilege; |
|
| 78 | 78 | |
| 79 | 79 | } |
| 80 | 80 | |
@@ -86,22 +86,22 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | class DDC698Privilege |
| 88 | 88 | { |
| 89 | - /** |
|
| 90 | - * @ORM\Id @ORM\Column(name="privilegeID", type="integer") |
|
| 91 | - * @ORM\GeneratedValue(strategy="AUTO") |
|
| 92 | - * |
|
| 93 | - */ |
|
| 94 | - protected $privilegeID; |
|
| 95 | - |
|
| 96 | - /** |
|
| 97 | - * @ORM\Column(name="name", type="string", length=45) |
|
| 98 | - * |
|
| 99 | - * |
|
| 100 | - */ |
|
| 101 | - protected $name; |
|
| 102 | - |
|
| 103 | - /** |
|
| 104 | - * @ORM\ManyToMany(targetEntity=DDC698Role::class, mappedBy="privilege") |
|
| 105 | - */ |
|
| 106 | - protected $roles; |
|
| 89 | + /** |
|
| 90 | + * @ORM\Id @ORM\Column(name="privilegeID", type="integer") |
|
| 91 | + * @ORM\GeneratedValue(strategy="AUTO") |
|
| 92 | + * |
|
| 93 | + */ |
|
| 94 | + protected $privilegeID; |
|
| 95 | + |
|
| 96 | + /** |
|
| 97 | + * @ORM\Column(name="name", type="string", length=45) |
|
| 98 | + * |
|
| 99 | + * |
|
| 100 | + */ |
|
| 101 | + protected $name; |
|
| 102 | + |
|
| 103 | + /** |
|
| 104 | + * @ORM\ManyToMany(targetEntity=DDC698Role::class, mappedBy="privilege") |
|
| 105 | + */ |
|
| 106 | + protected $roles; |
|
| 107 | 107 | } |
@@ -13,10 +13,10 @@ discard block |
||
| 13 | 13 | * @ORM\DiscriminatorMap({"auction"=CompanyAuction::class, "raffle"=CompanyRaffle::class}) |
| 14 | 14 | */ |
| 15 | 15 | abstract class CompanyEvent { |
| 16 | - /** |
|
| 17 | - * @ORM\Id @ORM\Column(type="integer") |
|
| 18 | - * @ORM\GeneratedValue |
|
| 19 | - */ |
|
| 16 | + /** |
|
| 17 | + * @ORM\Id @ORM\Column(type="integer") |
|
| 18 | + * @ORM\GeneratedValue |
|
| 19 | + */ |
|
| 20 | 20 | private $id; |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -27,18 +27,18 @@ discard block |
||
| 27 | 27 | * ) |
| 28 | 28 | * @ORM\JoinColumn(name="org_id", referencedColumnName="id") |
| 29 | 29 | */ |
| 30 | - private $organization; |
|
| 30 | + private $organization; |
|
| 31 | 31 | |
| 32 | - public function getId() { |
|
| 33 | - return $this->id; |
|
| 34 | - } |
|
| 32 | + public function getId() { |
|
| 33 | + return $this->id; |
|
| 34 | + } |
|
| 35 | 35 | |
| 36 | - public function getOrganization() { |
|
| 37 | - return $this->organization; |
|
| 38 | - } |
|
| 36 | + public function getOrganization() { |
|
| 37 | + return $this->organization; |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - public function setOrganization(CompanyOrganization $org) { |
|
| 41 | - $this->organization = $org; |
|
| 42 | - } |
|
| 40 | + public function setOrganization(CompanyOrganization $org) { |
|
| 41 | + $this->organization = $org; |
|
| 42 | + } |
|
| 43 | 43 | |
| 44 | 44 | } |
@@ -11,11 +11,11 @@ |
||
| 11 | 11 | * @ORM\Table(name="company_organizations") |
| 12 | 12 | */ |
| 13 | 13 | class CompanyOrganization { |
| 14 | - /** |
|
| 15 | - * @ORM\Id @ORM\Column(type="integer") |
|
| 16 | - * @ORM\GeneratedValue(strategy="AUTO") |
|
| 17 | - */ |
|
| 18 | - private $id; |
|
| 14 | + /** |
|
| 15 | + * @ORM\Id @ORM\Column(type="integer") |
|
| 16 | + * @ORM\GeneratedValue(strategy="AUTO") |
|
| 17 | + */ |
|
| 18 | + private $id; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * @ORM\OneToMany( |
@@ -34,16 +34,16 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | private $country; |
| 36 | 36 | |
| 37 | - /** |
|
| 38 | - * @ORM\ManyToMany(targetEntity=NavUser::class, cascade={"persist"}) |
|
| 39 | - * @ORM\JoinTable(name="navigation_pois_visitors", |
|
| 40 | - * inverseJoinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")}, |
|
| 41 | - * joinColumns={ |
|
| 42 | - * @ORM\JoinColumn(name="poi_long", referencedColumnName="nav_long"), |
|
| 43 | - * @ORM\JoinColumn(name="poi_lat", referencedColumnName="nav_lat") |
|
| 44 | - * } |
|
| 45 | - * ) |
|
| 46 | - */ |
|
| 37 | + /** |
|
| 38 | + * @ORM\ManyToMany(targetEntity=NavUser::class, cascade={"persist"}) |
|
| 39 | + * @ORM\JoinTable(name="navigation_pois_visitors", |
|
| 40 | + * inverseJoinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")}, |
|
| 41 | + * joinColumns={ |
|
| 42 | + * @ORM\JoinColumn(name="poi_long", referencedColumnName="nav_long"), |
|
| 43 | + * @ORM\JoinColumn(name="poi_lat", referencedColumnName="nav_lat") |
|
| 44 | + * } |
|
| 45 | + * ) |
|
| 46 | + */ |
|
| 47 | 47 | private $visitors; |
| 48 | 48 | |
| 49 | 49 | public function __construct($lat, $long, $name, $country) |
@@ -33,16 +33,16 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | protected $state; |
| 35 | 35 | |
| 36 | - /** |
|
| 37 | - * @ORM\ManyToMany(targetEntity=Travel::class, mappedBy="visitedCities") |
|
| 38 | - */ |
|
| 36 | + /** |
|
| 37 | + * @ORM\ManyToMany(targetEntity=Travel::class, mappedBy="visitedCities") |
|
| 38 | + */ |
|
| 39 | 39 | public $travels; |
| 40 | 40 | |
| 41 | - /** |
|
| 42 | - * @ORM\Cache |
|
| 43 | - * @ORM\OrderBy({"name" = "ASC"}) |
|
| 44 | - * @ORM\OneToMany(targetEntity=Attraction::class, mappedBy="city") |
|
| 45 | - */ |
|
| 41 | + /** |
|
| 42 | + * @ORM\Cache |
|
| 43 | + * @ORM\OrderBy({"name" = "ASC"}) |
|
| 44 | + * @ORM\OneToMany(targetEntity=Attraction::class, mappedBy="city") |
|
| 45 | + */ |
|
| 46 | 46 | public $attractions; |
| 47 | 47 | |
| 48 | 48 | public function __construct($name, State $state = null) |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @ORM\Cache |
| 39 | 39 | * @ORM\OneToOne(targetEntity=TravelerProfile::class) |
| 40 | 40 | */ |
| 41 | - protected $profile; |
|
| 41 | + protected $profile; |
|
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * @param string $name |