@@ -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", 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 = null; |
|
68 | - |
|
69 | - /** |
|
70 | - * @ORM\ManyToMany(targetEntity="DDC719Group", mappedBy="children") |
|
71 | - */ |
|
72 | - protected $parents = null; |
|
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", 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 = null; |
|
68 | + |
|
69 | + /** |
|
70 | + * @ORM\ManyToMany(targetEntity="DDC719Group", mappedBy="children") |
|
71 | + */ |
|
72 | + protected $parents = null; |
|
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 | } |