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/CoreBundle/Entity/SkillRelProfile.php

71 lines
1.4 KiB

<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* SkillRelProfile.
*
* @ORM\Table(name="skill_rel_profile")
* @ORM\Entity
*/
class SkillRelProfile
{
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
protected int $id;
/**
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Skill", cascade={"persist"})
* @ORM\JoinColumn(name="skill_id", referencedColumnName="id", onDelete="CASCADE")
*/
protected Skill $skill;
/**
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\SkillProfile", cascade={"persist"})
* @ORM\JoinColumn(name="profile_id", referencedColumnName="id", onDelete="CASCADE")
*/
protected SkillProfile $profile;
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
public function getSkill(): Skill
{
return $this->skill;
}
public function setSkill(Skill $skill): self
{
$this->skill = $skill;
return $this;
}
public function getProfile(): SkillProfile
{
return $this->profile;
}
public function setProfile(SkillProfile $profile): self
{
$this->profile = $profile;
return $this;
}
}