Move entities.

1.10.x
Julio Montoya 10 years ago
parent 78da94312b
commit aa6bc29fb4
  1. 2
      src/Chamilo/CoreBundle/Entity/Career.php
  2. 2
      src/Chamilo/CoreBundle/Entity/Chat.php
  3. 0
      src/Chamilo/CoreBundle/Entity/ClassItem.php
  4. 0
      src/Chamilo/CoreBundle/Entity/ClassUser.php
  5. 20
      src/Chamilo/CoreBundle/Entity/SessionRelUser.php

@ -1,6 +1,6 @@
<?php
namespace Chamilo\CourseBundle\Entity;
namespace Chamilo\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;

@ -1,6 +1,6 @@
<?php
namespace Chamilo\CourseBundle\Entity;
namespace Chamilo\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;

@ -12,18 +12,13 @@ use Doctrine\ORM\Mapping as ORM;
* @ORM\Table(
* name="session_rel_user",
* indexes={
* @ORM\Index(name="idx_session_rel_user_id_user_moved", columns={"id_user", "moved_to"})
* @ORM\Index(name="idx_session_rel_user_id_user_moved", columns={"user_id", "moved_to"})
* }
* )
* @ORM\Entity
*/
class SessionRelUser
{
public $relationTypeList = array(
0 => 'student',
1 => 'drh'
);
/**
* @var integer
*
@ -31,24 +26,29 @@ class SessionRelUser
* @ORM\Id
* @ORM\GeneratedValue
*/
private $relationType;
private $iid;
public $relationTypeList = array(
0 => 'student',
1 => 'drh'
);
/**
* @ORM\ManyToOne(targetEntity="Session", inversedBy="users", cascade={"persist"})
* @ORM\JoinColumn(name="id_session", referencedColumnName="id")
* @ORM\JoinColumn(name="session_id", referencedColumnName="id")
*/
private $session;
/**
* @ORM\ManyToOne(targetEntity="Chamilo\UserBundle\Entity\User", inversedBy="users", cascade={"persist"})
* @ORM\JoinColumn(name="id_user", referencedColumnName="id")
* @ORM\JoinColumn(name="user_id", referencedColumnName="id")
*/
private $user;
/**
* @var integer
*
* @ORM\Column(name="relation_type", type="integer", precision=0, scale=0, nullable=false, unique=false)
* @ORM\Column(name="relation_type", type="integer", nullable=false, unique=false)
*/
private $relationType;

Loading…
Cancel
Save