| 1 | <?php |
||
| 23 | class Profile |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var integer |
||
| 27 | * |
||
| 28 | * @ORM\Column(name="id", type="integer") |
||
| 29 | * @ORM\Id |
||
| 30 | * @ORM\GeneratedValue |
||
| 31 | */ |
||
| 32 | protected $id; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var string |
||
| 36 | * |
||
| 37 | * @ORM\Column(name="name", type="string", length=255, nullable=false) |
||
| 38 | */ |
||
| 39 | protected $name; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\Skill", mappedBy="profile", cascade={"persist"}) |
||
| 43 | **/ |
||
| 44 | protected $skills; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @ORM\OneToMany(targetEntity="Chamilo\SkillBundle\Entity\Level", mappedBy="profile", cascade={"persist"}) |
||
| 48 | * @ORM\OrderBy({"position" = "ASC"}) |
||
| 49 | **/ |
||
| 50 | protected $levels; |
||
| 51 | |||
| 52 | public function __toString() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return int |
||
| 59 | */ |
||
| 60 | public function getId() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @param int $id |
||
| 67 | * @return Profile |
||
| 68 | */ |
||
| 69 | public function setId($id) |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @return string |
||
| 78 | */ |
||
| 79 | public function getName() |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @param string $name |
||
| 86 | * @return Profile |
||
| 87 | */ |
||
| 88 | public function setName($name) |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @return mixed |
||
| 97 | */ |
||
| 98 | public function getSkills() |
||
| 102 | |||
| 103 | /** |
||
| 104 | * @param mixed $skills |
||
| 105 | * @return Profile |
||
| 106 | */ |
||
| 107 | public function setSkills($skills) |
||
| 113 | |||
| 114 | /** |
||
| 115 | * @return mixed |
||
| 116 | */ |
||
| 117 | public function getLevels() |
||
| 121 | |||
| 122 | /** |
||
| 123 | * @param mixed $levels |
||
| 124 | * @return Profile |
||
| 125 | */ |
||
| 126 | public function setLevels($levels) |
||
| 132 | |||
| 133 | } |
||
| 134 |