Skill: Set default courses

pull/4056/head
Julio 4 years ago
parent c3f16d9eb9
commit c2e44d7ff5
  1. 10
      src/Chamilo/CoreBundle/Entity/Skill.php

@ -110,6 +110,11 @@ class Skill
*/
protected $updatedAt;
public function __construct()
{
$this->courses = new ArrayCollection();
}
/**
* @return string
*/
@ -415,6 +420,11 @@ class Skill
$this->items[] = $skillRelItem;
}
public function hasCourses()
{
return null !== $this->courses;
}
/**
* @return ArrayCollection
*/

Loading…
Cancel
Save