@ -60,7 +60,7 @@ class AccessUrlRelUserGroup
return $this->userGroup;
}
public function setUserGroup(Usergroup $userGroup): AccessUrlRelUserGroup
public function setUserGroup(Usergroup $userGroup): self
{
$this->userGroup = $userGroup;
@ -88,7 +88,7 @@ class Tag
return $this->field;
public function setField(ExtraField $field): Tag
public function setField(ExtraField $field): self
$this->field = $field;
@ -41,7 +41,6 @@ class Version20180319145700 extends AbstractMigrationChamilo
$this->addSql('ALTER TABLE c_survey CHANGE avail_from avail_from DATETIME DEFAULT NULL;');
$this->addSql('ALTER TABLE c_survey CHANGE avail_till avail_till DATETIME DEFAULT NULL;');
$table = $schema->getTable('c_survey_answer');
if ($table->hasIndex('course')) {
@ -31,5 +31,4 @@ final class CSurveyRepository extends ResourceRepository
return $qb;