Chamilo is a learning management system focused on ease of use and accessibility
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.
 
 
 
 
 
 
chamilo-lms/src/Chamilo/UserBundle/Entity/Group.php

72 lines
1.3 KiB

<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\UserBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Sonata\UserBundle\Entity\BaseGroup as BaseGroup;
/**
* @ORM\Entity(repositoryClass="Chamilo\UserBundle\Repository\GroupRepository")
* @ORM\Table(name="fos_group")
*/
class Group extends BaseGroup
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\ManyToMany(targetEntity="Chamilo\UserBundle\Entity\User", mappedBy="groups")
*/
protected $users;
/**
* @var string
* @ORM\Column(name="code", type="string", length=40, nullable=false, unique=true)
*/
protected $code;
/**
* Get id.
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function getUsers()
{
return $this->users;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param string $code
*
* @return Group
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}
}