Remove course_rel_user.group_id

1.10.x
Julio Montoya 10 years ago
parent 39198b1ea0
commit 9f06401379
  1. 28
      src/Chamilo/CoreBundle/Entity/CourseRelUser.php
  2. 2
      src/Chamilo/CoreBundle/Migrations/Schema/v1/Version110.php

@ -93,13 +93,6 @@ class CourseRelUser
*/
protected $course;
/**
*
* @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CGroupInfo", inversedBy="course", cascade={"persist"})
* @ORM\JoinColumn(name="group_id", referencedColumnName="iid")
*/
//protected $group;
/**
* Constructor
*/
@ -132,27 +125,6 @@ class CourseRelUser
$this->id = $id;
}
/**
* @param CGroupInfo $group
* @return $this
*/
public function setGroup(CGroupInfo $group)
{
$this->group = $group;
return $this;
}
/**
* Get group
*
* @return CGroupInfo
*/
public function getGroup()
{
return $this->group;
}
/**
* @param Course $course
* @return $this

@ -460,6 +460,8 @@ class Version110 extends AbstractMigrationChamilo
$this->addSql("ALTER TABLE track_e_online DROP COLUMN course");
$this->addSql("ALTER TABLE track_e_attempt DROP COLUMN course_code");
$this->addSql("ALTER TABLE course_rel_user DROP COLUMN group_id");
$this->addSql("DROP TABLE track_c_countries");
$this->addSql("DROP TABLE track_c_browsers");
$this->addSql("DROP TABLE track_c_os");

Loading…
Cancel
Save