Fix entities

pull/3890/head
Julio Montoya 4 years ago
parent 3df10a84d0
commit 4f5cd5c4a7
  1. 6
      src/CoreBundle/Entity/AccessUrlRelSession.php
  2. 1
      src/CoreBundle/Entity/Asset.php
  3. 2
      src/CourseBundle/Entity/CLpItem.php
  4. 4
      src/CourseBundle/Entity/CRolePermissions.php

@ -11,10 +11,8 @@ use Doctrine\ORM\Mapping as ORM;
/**
* AccessUrlRelSession.
*
* @ORM\Table(name="access_url_rel_session",
* indexes={
* }))
* @ORM\Entity
* @ORM\Table(name="access_url_rel_session")
* @ORM\Entity
*/
class AccessUrlRelSession
{

@ -31,6 +31,7 @@ class Asset
public const WATERMARK = 'watermark';
public const CSS = 'css';
public const EXTRA_FIELD = 'ef';
public const COURSE_CATEGORY = 'course_category';
/**
* @ORM\Id

@ -136,7 +136,7 @@ class CLpItem
/**
* @Gedmo\TreeParent
* @ORM\ManyToOne(targetEntity="CLpItem", inversedBy="children", cascade="persist")
* @ORM\ManyToOne(targetEntity="CLpItem", inversedBy="children", cascade={"persist"})
* @ORM\JoinColumn(name="parent_item_id", referencedColumnName="iid", onDelete="SET NULL")
*/
protected ?CLpItem $parent = null;

@ -14,8 +14,8 @@ use Doctrine\ORM\Mapping as ORM;
* @ORM\Table(
* name="c_role_permissions",
* indexes={
* @ORM\Index(name="course", columns="c_id"),
* @ORM\Index(name="role", columns="role_id")
* @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="role", columns={"role_id"})
* }
* )
* @ORM\Entity

Loading…
Cancel
Save