for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* AccessUrlRelUser.
*
* @ORM\Table(name="access_url_rel_usergroup")
* @ORM\Entity
*/
class AccessUrlRelUserGroup
{
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue()
protected int $id;
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\AccessUrl")
* @ORM\JoinColumn(name="access_url_id", referencedColumnName="id")
protected AccessUrl $url;
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Usergroup", inversedBy="urls", cascade={"persist"})
* @ORM\JoinColumn(name="usergroup_id", referencedColumnName="id", onDelete="CASCADE")
protected Usergroup $userGroup;
* @return int
public function getId()
return $this->id;
}
public function getUrl(): AccessUrl
return $this->url;
public function setUrl(AccessUrl $url): self
$this->url = $url;
return $this;
public function getUserGroup(): Usergroup
return $this->userGroup;
public function setUserGroup(Usergroup $userGroup): AccessUrlRelUserGroup
$this->userGroup = $userGroup;