/
SiteGroup.php
75 lines (65 loc) · 1.46 KB
/
SiteGroup.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
<?php
namespace Concrete\Core\Entity\Permission;
use Concrete\Core\Entity\Site\Group\Group;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="PermissionAccessEntitySiteGroups",
* indexes={
* @ORM\Index(name="peID", columns={"peID"}),
* @ORM\Index(name="siteGID", columns={"siteGID"})
* }
* )
*/
class SiteGroup
{
/**
* @ORM\Id @ORM\Column(type="integer", nullable=false, options={"unsigned": true})
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $pegID;
/**
* @ORM\Column(type="integer", nullable=false, options={"unsigned": true})
*/
protected $peID;
/**
* @ORM\ManyToOne(targetEntity="\Concrete\Core\Entity\Site\Group\Group", inversedBy="site_groups")
* @ORM\JoinColumn(name="siteGID", referencedColumnName="siteGID")
**/
protected $group;
/**
* @return mixed
*/
public function getSiteGroupEntityID()
{
return $this->pegID;
}
/**
* @return mixed
*/
public function getPermissionAccessEntityID()
{
return $this->peID;
}
/**
* @param mixed $peID
*/
public function setPermissionAccessEntityID($peID)
{
$this->peID = $peID;
}
/**
* @return Group
*/
public function getSiteGroup()
{
return $this->group;
}
/**
* @param mixed $group
*/
public function setSiteGroup($group)
{
$this->group = $group;
}
}