/
Group.php
98 lines (82 loc) · 1.83 KB
/
Group.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
namespace Concrete\Core\Entity\Site\Group;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="GroupRepository")
* @ORM\Table(name="SiteGroups")
*/
class Group
{
/**
* @ORM\Id @ORM\Column(type="integer", options={"unsigned":true})
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $siteGID;
/**
* @ORM\OneToMany(targetEntity="Relation", cascade={"all"}, mappedBy="group")
**/
protected $group_relations;
/**
* @ORM\OneToMany(targetEntity="\Concrete\Core\Entity\Permission\SiteGroup", cascade={"all"}, mappedBy="group")
**/
protected $site_groups;
/**
* @ORM\ManyToOne(targetEntity="\Concrete\Core\Entity\Site\Type")
* @ORM\JoinColumn(name="siteTypeID", referencedColumnName="siteTypeID")
**/
protected $type;
/**
* @ORM\Column(type="string")
*/
protected $groupName;
/**
* @param $group_relations
*/
public function __construct()
{
$this->group_relations = new ArrayCollection();
}
/**
* @return mixed
*/
public function getSiteGroupID()
{
return $this->siteGID;
}
/**
* @return ArrayCollection
*/
public function getSiteGroupRelations()
{
return $this->group_relations;
}
/**
* @return mixed
*/
public function getSiteGroupName()
{
return $this->groupName;
}
/**
* @param mixed $groupName
*/
public function setSiteGroupName($groupName)
{
$this->groupName = $groupName;
}
/**
* @return mixed
*/
public function getSiteType()
{
return $this->type;
}
/**
* @param mixed $type
*/
public function setSiteType($type)
{
$this->type = $type;
}
}