You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
141 lines
2.3 KiB
141 lines
2.3 KiB
<?php
|
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* EntityCRoleUser
|
|
*
|
|
* @Table(name="c_role_user")
|
|
* @Entity
|
|
*/
|
|
class EntityCRoleUser
|
|
{
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
* @Id
|
|
* @GeneratedValue(strategy="NONE")
|
|
*/
|
|
private $cId;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @Column(name="role_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
* @Id
|
|
* @GeneratedValue(strategy="NONE")
|
|
*/
|
|
private $roleId;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @Column(name="user_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
* @Id
|
|
* @GeneratedValue(strategy="NONE")
|
|
*/
|
|
private $userId;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @Column(name="scope", type="string", length=20, precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $scope;
|
|
|
|
|
|
/**
|
|
* Set cId
|
|
*
|
|
* @param integer $cId
|
|
* @return EntityCRoleUser
|
|
*/
|
|
public function setCId($cId)
|
|
{
|
|
$this->cId = $cId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get cId
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getCId()
|
|
{
|
|
return $this->cId;
|
|
}
|
|
|
|
/**
|
|
* Set roleId
|
|
*
|
|
* @param integer $roleId
|
|
* @return EntityCRoleUser
|
|
*/
|
|
public function setRoleId($roleId)
|
|
{
|
|
$this->roleId = $roleId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get roleId
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getRoleId()
|
|
{
|
|
return $this->roleId;
|
|
}
|
|
|
|
/**
|
|
* Set userId
|
|
*
|
|
* @param integer $userId
|
|
* @return EntityCRoleUser
|
|
*/
|
|
public function setUserId($userId)
|
|
{
|
|
$this->userId = $userId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get userId
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getUserId()
|
|
{
|
|
return $this->userId;
|
|
}
|
|
|
|
/**
|
|
* Set scope
|
|
*
|
|
* @param string $scope
|
|
* @return EntityCRoleUser
|
|
*/
|
|
public function setScope($scope)
|
|
{
|
|
$this->scope = $scope;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get scope
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getScope()
|
|
{
|
|
return $this->scope;
|
|
}
|
|
}
|
|
|