for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
use Chamilo\CoreBundle\Traits\UserTrait;
use Doctrine\ORM\Mapping as ORM;
/**
* UserCourseCategory.
*
* @ORM\Table(name="user_course_category", indexes={@ORM\Index(name="idx_user_c_cat_uid", columns={"user_id"})})
* @ORM\Entity
*/
class UserCourseCategory
{
use UserTrait;
* @var int
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
protected $id;
* @var User
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User", inversedBy="userCourseCategories")
* @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")
protected $user;
* @var string
* @ORM\Column(name="title", type="text", nullable=false)
protected $title;
* @ORM\Column(name="sort", type="integer", nullable=true)
protected $sort;
* @var bool
* @ORM\Column(name="collapsed", type="boolean", nullable=true)
protected $isCollapsed;
* Set title.
* @param string $title
* @return UserCourseCategory
public function setTitle($title)
$this->title = $title;
return $this;
}
* Get title.
* @return string
public function getTitle()
return $this->title;
* Set sort.
* @param int $sort
public function setSort($sort)
$this->sort = $sort;
* Get sort.
* @return int
public function getSort()
return $this->sort;
* Get id.
public function getId()
return $this->id;