Minor - format entity annotations

pull/3844/head
Julio Montoya 4 years ago
parent b119e2443f
commit 67e16cafe5
  1. 8
      src/CourseBundle/Entity/CAttendance.php
  2. 8
      src/CourseBundle/Entity/CAttendanceCalendar.php
  3. 6
      src/CourseBundle/Entity/CAttendanceCalendarRelGroup.php
  4. 6
      src/CourseBundle/Entity/CAttendanceResult.php
  5. 8
      src/CourseBundle/Entity/CAttendanceSheet.php
  6. 8
      src/CourseBundle/Entity/CAttendanceSheetLog.php
  7. 10
      src/CourseBundle/Entity/CBlog.php
  8. 8
      src/CourseBundle/Entity/CBlogAttachment.php
  9. 8
      src/CourseBundle/Entity/CBlogComment.php
  10. 8
      src/CourseBundle/Entity/CBlogPost.php
  11. 8
      src/CourseBundle/Entity/CBlogRating.php
  12. 8
      src/CourseBundle/Entity/CBlogRelUser.php
  13. 8
      src/CourseBundle/Entity/CBlogTask.php
  14. 12
      src/CourseBundle/Entity/CBlogTaskRelUser.php
  15. 4
      src/CourseBundle/Entity/CCalendarEvent.php
  16. 5
      src/CourseBundle/Entity/CCalendarEventRepeat.php
  17. 12
      src/CourseBundle/Entity/CChatConnected.php
  18. 8
      src/CourseBundle/Entity/CCourseSetting.php
  19. 78
      src/CourseBundle/Entity/CDocument.php
  20. 10
      src/CourseBundle/Entity/CDropboxCategory.php
  21. 12
      src/CourseBundle/Entity/CDropboxFeedback.php
  22. 18
      src/CourseBundle/Entity/CDropboxFile.php
  23. 10
      src/CourseBundle/Entity/CDropboxPerson.php
  24. 12
      src/CourseBundle/Entity/CDropboxPost.php
  25. 8
      src/CourseBundle/Entity/CForumAttachment.php
  26. 6
      src/CourseBundle/Entity/CForumCategory.php
  27. 8
      src/CourseBundle/Entity/CForumForum.php
  28. 14
      src/CourseBundle/Entity/CForumMailcue.php
  29. 16
      src/CourseBundle/Entity/CForumNotification.php
  30. 16
      src/CourseBundle/Entity/CForumPost.php
  31. 6
      src/CourseBundle/Entity/CForumThread.php
  32. 10
      src/CourseBundle/Entity/CForumThreadQualify.php
  33. 10
      src/CourseBundle/Entity/CForumThreadQualifyLog.php
  34. 2
      src/CourseBundle/Entity/CGlossary.php
  35. 6
      src/CourseBundle/Entity/CGroup.php
  36. 6
      src/CourseBundle/Entity/CGroupCategory.php
  37. 8
      src/CourseBundle/Entity/CGroupRelTutor.php
  38. 8
      src/CourseBundle/Entity/CGroupRelUser.php
  39. 6
      src/CourseBundle/Entity/CLinkCategory.php
  40. 4
      src/CourseBundle/Entity/CLp.php
  41. 12
      src/CourseBundle/Entity/CLpItem.php
  42. 16
      src/CourseBundle/Entity/CLpItemView.php
  43. 10
      src/CourseBundle/Entity/CLpIvInteraction.php
  44. 10
      src/CourseBundle/Entity/CLpIvObjective.php
  45. 2
      src/CourseBundle/Entity/CLpRelUserGroup.php
  46. 14
      src/CourseBundle/Entity/CLpView.php
  47. 2
      src/CourseBundle/Entity/CNotebook.php
  48. 8
      src/CourseBundle/Entity/COnlineConnected.php
  49. 8
      src/CourseBundle/Entity/COnlineLink.php
  50. 10
      src/CourseBundle/Entity/CQuiz.php
  51. 8
      src/CourseBundle/Entity/CQuizAnswer.php
  52. 22
      src/CourseBundle/Entity/CQuizQuestion.php
  53. 6
      src/CourseBundle/Entity/CQuizQuestionCategory.php
  54. 8
      src/CourseBundle/Entity/CQuizQuestionOption.php
  55. 10
      src/CourseBundle/Entity/CQuizRelQuestion.php
  56. 8
      src/CourseBundle/Entity/CRole.php
  57. 10
      src/CourseBundle/Entity/CRoleGroup.php
  58. 10
      src/CourseBundle/Entity/CRolePermissions.php
  59. 10
      src/CourseBundle/Entity/CRoleUser.php
  60. 6
      src/CourseBundle/Entity/CStudentPublication.php
  61. 8
      src/CourseBundle/Entity/CStudentPublicationAssignment.php
  62. 6
      src/CourseBundle/Entity/CStudentPublicationComment.php
  63. 2
      src/CourseBundle/Entity/CStudentPublicationCorrection.php
  64. 12
      src/CourseBundle/Entity/CStudentPublicationRelDocument.php
  65. 12
      src/CourseBundle/Entity/CStudentPublicationRelUser.php
  66. 12
      src/CourseBundle/Entity/CSurvey.php
  67. 8
      src/CourseBundle/Entity/CSurveyAnswer.php
  68. 8
      src/CourseBundle/Entity/CSurveyGroup.php
  69. 10
      src/CourseBundle/Entity/CSurveyInvitation.php
  70. 8
      src/CourseBundle/Entity/CSurveyQuestion.php
  71. 10
      src/CourseBundle/Entity/CSurveyQuestionOption.php
  72. 8
      src/CourseBundle/Entity/CThematic.php
  73. 6
      src/CourseBundle/Entity/CThematicAdvance.php
  74. 8
      src/CourseBundle/Entity/CThematicPlan.php
  75. 10
      src/CourseBundle/Entity/CTool.php
  76. 8
      src/CourseBundle/Entity/CToolIntro.php
  77. 10
      src/CourseBundle/Entity/CWikiConf.php
  78. 8
      src/CourseBundle/Entity/CWikiDiscuss.php
  79. 14
      src/CourseBundle/Entity/CWikiMailcue.php
  80. 2
      src/CourseBundle/Repository/CShortcutRepository.php
  81. 2
      src/CourseBundle/Settings/SettingsCourseManager.php

@ -17,10 +17,10 @@ use Symfony\Component\Validator\Constraints as Assert;
* CAttendance. * CAttendance.
* *
* @ORM\Table( * @ORM\Table(
* name="c_attendance", * name="c_attendance",
* indexes={ * indexes={
* @ORM\Index(name="active", columns={"active"}) * @ORM\Index(name="active", columns={"active"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,10 +13,10 @@ use Doctrine\ORM\Mapping as ORM;
* CAttendanceCalendar. * CAttendanceCalendar.
* *
* @ORM\Table( * @ORM\Table(
* name="c_attendance_calendar", * name="c_attendance_calendar",
* indexes={ * indexes={
* @ORM\Index(name="done_attendance", columns={"done_attendance"}) * @ORM\Index(name="done_attendance", columns={"done_attendance"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,9 +12,9 @@ use Doctrine\ORM\Mapping as ORM;
* CAttendanceCalendarRelGroup. * CAttendanceCalendarRelGroup.
* *
* @ORM\Table( * @ORM\Table(
* name="c_attendance_calendar_rel_group", * name="c_attendance_calendar_rel_group",
* indexes={ * indexes={
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,9 +13,9 @@ use Doctrine\ORM\Mapping as ORM;
* CAttendanceResult. * CAttendanceResult.
* *
* @ORM\Table( * @ORM\Table(
* name="c_attendance_result", * name="c_attendance_result",
* indexes={ * indexes={
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,10 +13,10 @@ use Doctrine\ORM\Mapping as ORM;
* CAttendanceSheet. * CAttendanceSheet.
* *
* @ORM\Table( * @ORM\Table(
* name="c_attendance_sheet", * name="c_attendance_sheet",
* indexes={ * indexes={
* @ORM\Index(name="presence", columns={"presence"}) * @ORM\Index(name="presence", columns={"presence"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,10 +13,10 @@ use Doctrine\ORM\Mapping as ORM;
* CAttendanceSheetLog. * CAttendanceSheetLog.
* *
* @ORM\Table( * @ORM\Table(
* name="c_attendance_sheet_log", * name="c_attendance_sheet_log",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -16,11 +16,11 @@ use Symfony\Component\Validator\Constraints as Assert;
* CBlog. * CBlog.
* *
* @ORM\Table( * @ORM\Table(
* name="c_blog", * name="c_blog",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="session_id", columns={"session_id"}) * @ORM\Index(name="session_id", columns={"session_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,10 +12,10 @@ use Doctrine\ORM\Mapping as ORM;
* CBlogAttachment. * CBlogAttachment.
* *
* @ORM\Table( * @ORM\Table(
* name="c_blog_attachment", * name="c_blog_attachment",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,10 +13,10 @@ use Doctrine\ORM\Mapping as ORM;
* CBlogComment. * CBlogComment.
* *
* @ORM\Table( * @ORM\Table(
* name="c_blog_comment", * name="c_blog_comment",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -11,10 +11,10 @@ use Doctrine\ORM\Mapping as ORM;
* CBlogPost. * CBlogPost.
* *
* @ORM\Table( * @ORM\Table(
* name="c_blog_post", * name="c_blog_post",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,10 +12,10 @@ use Doctrine\ORM\Mapping as ORM;
* CBlogRating. * CBlogRating.
* *
* @ORM\Table( * @ORM\Table(
* name="c_blog_rating", * name="c_blog_rating",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,10 +12,10 @@ use Doctrine\ORM\Mapping as ORM;
* CBlogRelUser. * CBlogRelUser.
* *
* @ORM\Table( * @ORM\Table(
* name="c_blog_rel_user", * name="c_blog_rel_user",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,10 +12,10 @@ use Doctrine\ORM\Mapping as ORM;
* CBlogTask. * CBlogTask.
* *
* @ORM\Table( * @ORM\Table(
* name="c_blog_task", * name="c_blog_task",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,12 +13,12 @@ use Doctrine\ORM\Mapping as ORM;
* CBlogTaskRelUser. * CBlogTaskRelUser.
* *
* @ORM\Table( * @ORM\Table(
* name="c_blog_task_rel_user", * name="c_blog_task_rel_user",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="user", columns={"user_id"}), * @ORM\Index(name="user", columns={"user_id"}),
* @ORM\Index(name="task", columns={"task_id"}) * @ORM\Index(name="task", columns={"task_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -284,7 +284,7 @@ class CCalendarEvent extends AbstractResource implements ResourceInterface
} }
/** /**
* @return Collection|CCalendarEventAttachment[] * @return Collection
*/ */
public function getAttachments() public function getAttachments()
{ {
@ -292,7 +292,7 @@ class CCalendarEvent extends AbstractResource implements ResourceInterface
} }
/** /**
* @param Collection|CCalendarEventAttachment[] $attachments * @param Collection $attachments
*/ */
public function setAttachments($attachments): self public function setAttachments($attachments): self
{ {

@ -142,4 +142,9 @@ class CCalendarEventRepeat
{ {
return $this->calDays; return $this->calDays;
} }
public function getEvent(): CCalendarEvent
{
return $this->event;
}
} }

@ -13,12 +13,12 @@ use Doctrine\ORM\Mapping as ORM;
* CChatConnected. * CChatConnected.
* *
* @ORM\Table( * @ORM\Table(
* name="c_chat_connected", * name="c_chat_connected",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="user", columns={"user_id"}), * @ORM\Index(name="user", columns={"user_id"}),
* @ORM\Index(name="char_connected_index", columns={"user_id", "session_id", "to_group_id"}) * @ORM\Index(name="char_connected_index", columns={"user_id", "session_id", "to_group_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,10 +13,10 @@ use Symfony\Component\Validator\Constraints as Assert;
* CCourseSetting. * CCourseSetting.
* *
* @ORM\Table( * @ORM\Table(
* name="c_course_setting", * name="c_course_setting",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -22,22 +22,22 @@ use Symfony\Component\Validator\Constraints as Assert;
/** /**
* @ApiResource( * @ApiResource(
* shortName="Documents", * shortName="Documents",
* normalizationContext={"groups"={"document:read", "resource_node:read"}}, * normalizationContext={"groups"={"document:read", "resource_node:read"}},
* denormalizationContext={"groups"={"document:write"}}, * denormalizationContext={"groups"={"document:write"}},
* itemOperations={ * itemOperations={
* "put" ={ * "put" ={
* "controller"=UpdateResourceNodeFileAction::class, * "controller"=UpdateResourceNodeFileAction::class,
* "deserialize"=false, * "deserialize"=false,
* "security" = "is_granted('EDIT', object.resourceNode)", * "security" = "is_granted('EDIT', object.resourceNode)",
* "validation_groups"={"media_object_create", "document:write"}, * "validation_groups"={"media_object_create", "document:write"},
* }, * },
* "get" = { * "get" = {
* "security" = "is_granted('VIEW', object.resourceNode)", * "security" = "is_granted('VIEW', object.resourceNode)",
* }, * },
* "delete" = { * "delete" = {
* "security" = "is_granted('DELETE', object.resourceNode)", * "security" = "is_granted('DELETE', object.resourceNode)",
* }, * },
* }, * },
* collectionOperations={ * collectionOperations={
* "post"={ * "post"={
@ -75,18 +75,18 @@ use Symfony\Component\Validator\Constraints as Assert;
* "resourceLinkList"={ * "resourceLinkList"={
* "type"="array", * "type"="array",
* "items": { * "items": {
* "type": "object", * "type": "object",
* "properties"={ * "properties"={
* "visibility"={ * "visibility"={
* "type"="integer", * "type"="integer",
* }, * },
* "c_id"={ * "c_id"={
* "type"="integer", * "type"="integer",
* }, * },
* "session_id"={ * "session_id"={
* "type"="integer", * "type"="integer",
* }, * },
* } * }
* } * }
* }, * },
* } * }
@ -104,20 +104,20 @@ use Symfony\Component\Validator\Constraints as Assert;
* @ApiFilter( * @ApiFilter(
* OrderFilter::class, * OrderFilter::class,
* properties={ * properties={
* "id", * "id",
* "filetype", * "filetype",
* "resourceNode.title", * "resourceNode.title",
* "resourceNode.createdAt", * "resourceNode.createdAt",
* "resourceNode.resourceFile.size", * "resourceNode.resourceFile.size",
* "resourceNode.updatedAt" * "resourceNode.updatedAt"
* } * }
* ) * )
* *
* @ORM\Table( * @ORM\Table(
* name="c_document", * name="c_document",
* indexes={ * indexes={
* @ORM\Index(name="idx_cdoc_type", columns={"filetype"}), * @ORM\Index(name="idx_cdoc_type", columns={"filetype"}),
* } * }
* ) * )
* @ORM\EntityListeners({"Chamilo\CoreBundle\Entity\Listener\ResourceListener"}) * @ORM\EntityListeners({"Chamilo\CoreBundle\Entity\Listener\ResourceListener"})
* @ORM\Entity * @ORM\Entity

@ -13,11 +13,11 @@ use Symfony\Component\Validator\Constraints as Assert;
* CDropboxCategory. * CDropboxCategory.
* *
* @ORM\Table( * @ORM\Table(
* name="c_dropbox_category", * name="c_dropbox_category",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="session_id", columns={"session_id"}) * @ORM\Index(name="session_id", columns={"session_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,12 +13,12 @@ use Doctrine\ORM\Mapping as ORM;
* CDropboxFeedback. * CDropboxFeedback.
* *
* @ORM\Table( * @ORM\Table(
* name="c_dropbox_feedback", * name="c_dropbox_feedback",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="file_id", columns={"file_id"}), * @ORM\Index(name="file_id", columns={"file_id"}),
* @ORM\Index(name="author_user_id", columns={"author_user_id"}) * @ORM\Index(name="author_user_id", columns={"author_user_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,15 +13,15 @@ use Doctrine\ORM\Mapping as ORM;
* CDropboxFile. * CDropboxFile.
* *
* @ORM\Table( * @ORM\Table(
* name="c_dropbox_file", * name="c_dropbox_file",
* options={"row_format":"DYNAMIC"}, * options={"row_format":"DYNAMIC"},
* uniqueConstraints={ * uniqueConstraints={
* @ORM\UniqueConstraint(name="UN_filename", columns={"filename"}) * @ORM\UniqueConstraint(name="UN_filename", columns={"filename"})
* }, * },
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="session_id", columns={"session_id"}) * @ORM\Index(name="session_id", columns={"session_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,11 +12,11 @@ use Doctrine\ORM\Mapping as ORM;
* CDropboxPerson. * CDropboxPerson.
* *
* @ORM\Table( * @ORM\Table(
* name="c_dropbox_person", * name="c_dropbox_person",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="user", columns={"user_id"}) * @ORM\Index(name="user", columns={"user_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,12 +13,12 @@ use Doctrine\ORM\Mapping as ORM;
* CDropboxPost. * CDropboxPost.
* *
* @ORM\Table( * @ORM\Table(
* name="c_dropbox_post", * name="c_dropbox_post",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="dest_user", columns={"dest_user_id"}), * @ORM\Index(name="dest_user", columns={"dest_user_id"}),
* @ORM\Index(name="session_id", columns={"session_id"}) * @ORM\Index(name="session_id", columns={"session_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -14,10 +14,10 @@ use Doctrine\ORM\Mapping as ORM;
* CForumAttachment. * CForumAttachment.
* *
* @ORM\Table( * @ORM\Table(
* name="c_forum_attachment", * name="c_forum_attachment",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -16,9 +16,9 @@ use Symfony\Component\Validator\Constraints as Assert;
* CForumCategory. * CForumCategory.
* *
* @ORM\Table( * @ORM\Table(
* name="c_forum_category", * name="c_forum_category",
* indexes={ * indexes={
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -18,10 +18,10 @@ use Symfony\Component\Validator\Constraints as Assert;
* CForumForum. * CForumForum.
* *
* @ORM\Table( * @ORM\Table(
* name="c_forum_forum", * name="c_forum_forum",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,13 +12,13 @@ use Doctrine\ORM\Mapping as ORM;
* CForumMailcue. * CForumMailcue.
* *
* @ORM\Table( * @ORM\Table(
* name="c_forum_mailcue", * name="c_forum_mailcue",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="thread", columns={"thread_id"}), * @ORM\Index(name="thread", columns={"thread_id"}),
* @ORM\Index(name="user", columns={"user_id"}), * @ORM\Index(name="user", columns={"user_id"}),
* @ORM\Index(name="post", columns={"post_id"}) * @ORM\Index(name="post", columns={"post_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,14 +12,14 @@ use Doctrine\ORM\Mapping as ORM;
* CForumNotification. * CForumNotification.
* *
* @ORM\Table( * @ORM\Table(
* name="c_forum_notification", * name="c_forum_notification",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="thread", columns={"thread_id"}), * @ORM\Index(name="thread", columns={"thread_id"}),
* @ORM\Index(name="post", columns={"post_id"}), * @ORM\Index(name="post", columns={"post_id"}),
* @ORM\Index(name="user_id", columns={"user_id"}), * @ORM\Index(name="user_id", columns={"user_id"}),
* @ORM\Index(name="forum_id", columns={"forum_id"}) * @ORM\Index(name="forum_id", columns={"forum_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -19,14 +19,14 @@ use Symfony\Component\Validator\Constraints as Assert;
* CForumPost. * CForumPost.
* *
* @ORM\Table( * @ORM\Table(
* name="c_forum_post", * name="c_forum_post",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="forum_id", columns={"forum_id"}), * @ORM\Index(name="forum_id", columns={"forum_id"}),
* @ORM\Index(name="idx_forum_post_thread_id", columns={"thread_id"}), * @ORM\Index(name="idx_forum_post_thread_id", columns={"thread_id"}),
* @ORM\Index(name="idx_forum_post_visible", columns={"visible"}), * @ORM\Index(name="idx_forum_post_visible", columns={"visible"}),
* @ORM\Index(name="c_id_visible_post_date", columns={"c_id", "visible", "post_date"}) * @ORM\Index(name="c_id_visible_post_date", columns={"c_id", "visible", "post_date"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -19,9 +19,9 @@ use Symfony\Component\Validator\Constraints as Assert;
* CForumThread. * CForumThread.
* *
* @ORM\Table( * @ORM\Table(
* name="c_forum_thread", * name="c_forum_thread",
* indexes={ * indexes={
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,11 +13,11 @@ use Doctrine\ORM\Mapping as ORM;
* CForumThreadQualify. * CForumThreadQualify.
* *
* @ORM\Table( * @ORM\Table(
* name="c_forum_thread_qualify", * name="c_forum_thread_qualify",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="user_id", columns={"user_id", "thread_id"}) * @ORM\Index(name="user_id", columns={"user_id", "thread_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,11 +13,11 @@ use Doctrine\ORM\Mapping as ORM;
* CForumThreadQualifyLog. * CForumThreadQualifyLog.
* *
* @ORM\Table( * @ORM\Table(
* name="c_forum_thread_qualify_log", * name="c_forum_thread_qualify_log",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="user_id", columns={"user_id", "thread_id"}) * @ORM\Index(name="user_id", columns={"user_id", "thread_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -15,7 +15,7 @@ use Symfony\Component\Validator\Constraints as Assert;
* CGlossary. * CGlossary.
* *
* @ORM\Table( * @ORM\Table(
* name="c_glossary" * name="c_glossary"
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -24,9 +24,9 @@ use Symfony\Component\Validator\Constraints as Assert;
* ) * )
* *
* @ORM\Table( * @ORM\Table(
* name="c_group_info", * name="c_group_info",
* indexes={ * indexes={
* } * }
* ) * )
* *
* @ORM\Entity * @ORM\Entity

@ -15,9 +15,9 @@ use Symfony\Component\Validator\Constraints as Assert;
* CGroupCategory. * CGroupCategory.
* *
* @ORM\Table( * @ORM\Table(
* name="c_group_category", * name="c_group_category",
* indexes={ * indexes={
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,10 +13,10 @@ use Doctrine\ORM\Mapping as ORM;
* CGroupRelTutor. * CGroupRelTutor.
* *
* @ORM\Table( * @ORM\Table(
* name="c_group_rel_tutor", * name="c_group_rel_tutor",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -14,10 +14,10 @@ use Doctrine\ORM\Mapping as ORM;
* CGroupRelUser. * CGroupRelUser.
* *
* @ORM\Table( * @ORM\Table(
* name="c_group_rel_user", * name="c_group_rel_user",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -17,9 +17,9 @@ use Symfony\Component\Validator\Constraints as Assert;
* CLinkCategory. * CLinkCategory.
* *
* @ORM\Table( * @ORM\Table(
* name="c_link_category", * name="c_link_category",
* indexes={ * indexes={
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -16,10 +16,8 @@ use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Constraints as Assert;
/** /**
* CLp.
*
* @ORM\Table( * @ORM\Table(
* name="c_lp" * name="c_lp"
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,12 +13,12 @@ use Symfony\Component\Validator\Constraints as Assert;
* CLpItem. * CLpItem.
* *
* @ORM\Table( * @ORM\Table(
* name="c_lp_item", * name="c_lp_item",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="lp_id", columns={"lp_id"}), * @ORM\Index(name="lp_id", columns={"lp_id"}),
* @ORM\Index(name="idx_c_lp_item_cid_lp_id", columns={"c_id", "lp_id"}) * @ORM\Index(name="idx_c_lp_item_cid_lp_id", columns={"c_id", "lp_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,15 +12,15 @@ use Doctrine\ORM\Mapping as ORM;
* CLpItemView. * CLpItemView.
* *
* @ORM\Table( * @ORM\Table(
* name="c_lp_item_view", * name="c_lp_item_view",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="lp_item_id", columns={"lp_item_id"}), * @ORM\Index(name="lp_item_id", columns={"lp_item_id"}),
* @ORM\Index(name="lp_view_id", columns={"lp_view_id"}), * @ORM\Index(name="lp_view_id", columns={"lp_view_id"}),
* @ORM\Index(name="idx_c_lp_item_view_cid_lp_view_id_lp_item_id", columns={"c_id", "lp_view_id", "lp_item_id"}), * @ORM\Index(name="idx_c_lp_item_view_cid_lp_view_id_lp_item_id", columns={"c_id", "lp_view_id", "lp_item_id"}),
* @ORM\Index(name="idx_c_lp_item_view_cid_id_view_count", columns={"c_id", "iid", "view_count"}) * @ORM\Index(name="idx_c_lp_item_view_cid_id_view_count", columns={"c_id", "iid", "view_count"})
* *
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,11 +12,11 @@ use Doctrine\ORM\Mapping as ORM;
* CLpIvInteraction. * CLpIvInteraction.
* *
* @ORM\Table( * @ORM\Table(
* name="c_lp_iv_interaction", * name="c_lp_iv_interaction",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="lp_iv_id", columns={"lp_iv_id"}) * @ORM\Index(name="lp_iv_id", columns={"lp_iv_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,11 +12,11 @@ use Doctrine\ORM\Mapping as ORM;
* CLpIvObjective. * CLpIvObjective.
* *
* @ORM\Table( * @ORM\Table(
* name="c_lp_iv_objective", * name="c_lp_iv_objective",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="lp_iv_id", columns={"lp_iv_id"}) * @ORM\Index(name="lp_iv_id", columns={"lp_iv_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -19,7 +19,7 @@ use Gedmo\Mapping\Annotation as Gedmo;
* CLp. * CLp.
* *
* @ORM\Table( * @ORM\Table(
* name="c_lp_rel_usergroup" * name="c_lp_rel_usergroup"
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,13 +12,13 @@ use Doctrine\ORM\Mapping as ORM;
* CLpView. * CLpView.
* *
* @ORM\Table( * @ORM\Table(
* name="c_lp_view", * name="c_lp_view",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="lp_id", columns={"lp_id"}), * @ORM\Index(name="lp_id", columns={"lp_id"}),
* @ORM\Index(name="user_id", columns={"user_id"}), * @ORM\Index(name="user_id", columns={"user_id"}),
* @ORM\Index(name="session_id", columns={"session_id"}) * @ORM\Index(name="session_id", columns={"session_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -18,7 +18,7 @@ use Symfony\Component\Validator\Constraints as Assert;
* *
* @ORM\Entity * @ORM\Entity
* @ORM\Table( * @ORM\Table(
* name="c_notebook" * name="c_notebook"
* ) * )
*/ */
class CNotebook extends AbstractResource implements ResourceInterface class CNotebook extends AbstractResource implements ResourceInterface

@ -13,10 +13,10 @@ use Doctrine\ORM\Mapping as ORM;
* COnlineConnected. * COnlineConnected.
* *
* @ORM\Table( * @ORM\Table(
* name="c_online_connected", * name="c_online_connected",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,10 +12,10 @@ use Doctrine\ORM\Mapping as ORM;
* COnlineLink. * COnlineLink.
* *
* @ORM\Table( * @ORM\Table(
* name="c_online_link", * name="c_online_link",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -21,11 +21,11 @@ use Symfony\Component\Validator\Constraints as Assert;
* CQuiz. * CQuiz.
* *
* @ORM\Table( * @ORM\Table(
* name="c_quiz", * name="c_quiz",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="session_id", columns={"session_id"}) * @ORM\Index(name="session_id", columns={"session_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,10 +13,10 @@ use Symfony\Component\Validator\Constraints as Assert;
* CQuizAnswer. * CQuizAnswer.
* *
* @ORM\Table( * @ORM\Table(
* name="c_quiz_answer", * name="c_quiz_answer",
* indexes={ * indexes={
* @ORM\Index(name="idx_cqa_q", columns={"question_id"}), * @ORM\Index(name="idx_cqa_q", columns={"question_id"}),
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -17,10 +17,10 @@ use Symfony\Component\Validator\Constraints as Assert;
* CQuizQuestion. * CQuizQuestion.
* *
* @ORM\Table( * @ORM\Table(
* name="c_quiz_question", * name="c_quiz_question",
* indexes={ * indexes={
* @ORM\Index(name="position", columns={"position"}) * @ORM\Index(name="position", columns={"position"})
* } * }
* ) * )
* @ORM\Entity() * @ORM\Entity()
*/ */
@ -90,8 +90,12 @@ class CQuizQuestion extends AbstractResource implements ResourceInterface
* *
* @ORM\ManyToMany(targetEntity="Chamilo\CourseBundle\Entity\CQuizQuestionCategory", inversedBy="questions") * @ORM\ManyToMany(targetEntity="Chamilo\CourseBundle\Entity\CQuizQuestionCategory", inversedBy="questions")
* @ORM\JoinTable(name="c_quiz_question_rel_category", * @ORM\JoinTable(name="c_quiz_question_rel_category",
* joinColumns={@ORM\JoinColumn(name="category_id", referencedColumnName="iid")}, * joinColumns={
* inverseJoinColumns={@ORM\JoinColumn(name="question_id", referencedColumnName="iid")} * @ORM\JoinColumn(name="category_id", referencedColumnName="iid")
* },
* inverseJoinColumns={
* @ORM\JoinColumn(name="question_id", referencedColumnName="iid")
* }
* ) * )
*/ */
protected $categories; protected $categories;
@ -205,9 +209,6 @@ class CQuizQuestion extends AbstractResource implements ResourceInterface
return $this->description; return $this->description;
} }
/**
* Set ponderation.
*/
public function setPonderation(float $ponderation): self public function setPonderation(float $ponderation): self
{ {
$this->ponderation = $ponderation; $this->ponderation = $ponderation;
@ -225,9 +226,6 @@ class CQuizQuestion extends AbstractResource implements ResourceInterface
return $this->ponderation; return $this->ponderation;
} }
/**
* Set position.
*/
public function setPosition(int $position): self public function setPosition(int $position): self
{ {
$this->position = $position; $this->position = $position;

@ -19,9 +19,9 @@ use Symfony\Component\Validator\Constraints as Assert;
* CQuizQuestionCategory. * CQuizQuestionCategory.
* *
* @ORM\Table( * @ORM\Table(
* name="c_quiz_question_category", * name="c_quiz_question_category",
* indexes={ * indexes={
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,10 +12,10 @@ use Doctrine\ORM\Mapping as ORM;
* CQuizQuestionOption. * CQuizQuestionOption.
* *
* @ORM\Table( * @ORM\Table(
* name="c_quiz_question_option", * name="c_quiz_question_option",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,11 +13,11 @@ use Symfony\Component\Validator\Constraints as Assert;
* CQuizRelQuestion. * CQuizRelQuestion.
* *
* @ORM\Table( * @ORM\Table(
* name="c_quiz_rel_question", * name="c_quiz_rel_question",
* indexes={ * indexes={
* @ORM\Index(name="question", columns={"question_id"}), * @ORM\Index(name="question", columns={"question_id"}),
* @ORM\Index(name="exercise", columns={"quiz_id"}) * @ORM\Index(name="exercise", columns={"quiz_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,10 +12,10 @@ use Doctrine\ORM\Mapping as ORM;
* CRole. * CRole.
* *
* @ORM\Table( * @ORM\Table(
* name="c_role", * name="c_role",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,11 +12,11 @@ use Doctrine\ORM\Mapping as ORM;
* CRoleGroup. * CRoleGroup.
* *
* @ORM\Table( * @ORM\Table(
* name="c_role_group", * name="c_role_group",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="group", columns={"group_id"}) * @ORM\Index(name="group", columns={"group_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

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

@ -12,11 +12,11 @@ use Doctrine\ORM\Mapping as ORM;
* CRoleUser. * CRoleUser.
* *
* @ORM\Table( * @ORM\Table(
* name="c_role_user", * name="c_role_user",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="user", columns={"user_id"}) * @ORM\Index(name="user", columns={"user_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -20,9 +20,9 @@ use Symfony\Component\Validator\Constraints as Assert;
* CStudentPublication. * CStudentPublication.
* *
* @ORM\Table( * @ORM\Table(
* name="c_student_publication", * name="c_student_publication",
* indexes={ * indexes={
* } * }
* ) * )
* @ORM\Entity() * @ORM\Entity()
*/ */

@ -13,10 +13,10 @@ use Doctrine\ORM\Mapping as ORM;
* CStudentPublicationAssignment. * CStudentPublicationAssignment.
* *
* @ORM\Table( * @ORM\Table(
* name="c_student_publication_assignment", * name="c_student_publication_assignment",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -17,9 +17,9 @@ use Doctrine\ORM\Mapping as ORM;
* CStudentPublicationComment. * CStudentPublicationComment.
* *
* @ORM\Table( * @ORM\Table(
* name="c_student_publication_comment", * name="c_student_publication_comment",
* indexes={ * indexes={
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,7 +13,7 @@ use Symfony\Component\Validator\Constraints as Assert;
/** /**
* @ORM\Table( * @ORM\Table(
* name="c_student_publication_correction" * name="c_student_publication_correction"
* ) * )
* @ORM\Entity() * @ORM\Entity()
*/ */

@ -12,12 +12,12 @@ use Doctrine\ORM\Mapping as ORM;
* CStudentPublicationRelDocument. * CStudentPublicationRelDocument.
* *
* @ORM\Table( * @ORM\Table(
* name="c_student_publication_rel_document", * name="c_student_publication_rel_document",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="work", columns={"work_id"}), * @ORM\Index(name="work", columns={"work_id"}),
* @ORM\Index(name="document", columns={"document_id"}) * @ORM\Index(name="document", columns={"document_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,12 +12,12 @@ use Doctrine\ORM\Mapping as ORM;
* CStudentPublicationRelUser. * CStudentPublicationRelUser.
* *
* @ORM\Table( * @ORM\Table(
* name="c_student_publication_rel_user", * name="c_student_publication_rel_user",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="work", columns={"work_id"}), * @ORM\Index(name="work", columns={"work_id"}),
* @ORM\Index(name="user", columns={"user_id"}) * @ORM\Index(name="user", columns={"user_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -18,12 +18,12 @@ use Symfony\Component\Validator\Constraints as Assert;
* CSurvey. * CSurvey.
* *
* @ORM\Table( * @ORM\Table(
* name="c_survey", * name="c_survey",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="session_id", columns={"session_id"}), * @ORM\Index(name="session_id", columns={"session_id"}),
* @ORM\Index(name="idx_survey_code", columns={"code"}) * @ORM\Index(name="idx_survey_code", columns={"code"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,10 +12,10 @@ use Doctrine\ORM\Mapping as ORM;
* CSurveyAnswer. * CSurveyAnswer.
* *
* @ORM\Table( * @ORM\Table(
* name="c_survey_answer", * name="c_survey_answer",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,10 +12,10 @@ use Doctrine\ORM\Mapping as ORM;
* CSurveyGroup. * CSurveyGroup.
* *
* @ORM\Table( * @ORM\Table(
* name="c_survey_group", * name="c_survey_group",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -14,11 +14,11 @@ use Doctrine\ORM\Mapping as ORM;
* CSurveyInvitation. * CSurveyInvitation.
* *
* @ORM\Table( * @ORM\Table(
* name="c_survey_invitation", * name="c_survey_invitation",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="idx_survey_inv_code", columns={"survey_code"}) * @ORM\Index(name="idx_survey_inv_code", columns={"survey_code"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -15,10 +15,10 @@ use Symfony\Component\Validator\Constraints as Assert;
* CSurveyQuestion. * CSurveyQuestion.
* *
* @ORM\Table( * @ORM\Table(
* name="c_survey_question", * name="c_survey_question",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,11 +12,11 @@ use Doctrine\ORM\Mapping as ORM;
* CSurveyQuestionOption. * CSurveyQuestionOption.
* *
* @ORM\Table( * @ORM\Table(
* name="c_survey_question_option", * name="c_survey_question_option",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="idx_survey_qo_qid", columns={"question_id"}) * @ORM\Index(name="idx_survey_qo_qid", columns={"question_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -16,10 +16,10 @@ use Symfony\Component\Validator\Constraints as Assert;
* CThematic. * CThematic.
* *
* @ORM\Table( * @ORM\Table(
* name="c_thematic", * name="c_thematic",
* indexes={ * indexes={
* @ORM\Index(name="active", columns={"active"}) * @ORM\Index(name="active", columns={"active"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -16,9 +16,9 @@ use Doctrine\ORM\Mapping as ORM;
* CThematicAdvance. * CThematicAdvance.
* *
* @ORM\Table( * @ORM\Table(
* name="c_thematic_advance", * name="c_thematic_advance",
* indexes={ * indexes={
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -15,10 +15,10 @@ use Symfony\Component\Validator\Constraints as Assert;
* CThematicPlan. * CThematicPlan.
* *
* @ORM\Table( * @ORM\Table(
* name="c_thematic_plan", * name="c_thematic_plan",
* indexes={ * indexes={
* @ORM\Index(name="thematic_id", columns={"thematic_id", "description_type"}) * @ORM\Index(name="thematic_id", columns={"thematic_id", "description_type"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -21,11 +21,11 @@ use Symfony\Component\Validator\Constraints as Assert;
* *
* @ORM\HasLifecycleCallbacks * @ORM\HasLifecycleCallbacks
* @ORM\Table( * @ORM\Table(
* name="c_tool", * name="c_tool",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="session_id", columns={"session_id"}) * @ORM\Index(name="session_id", columns={"session_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -12,10 +12,10 @@ use Doctrine\ORM\Mapping as ORM;
* CToolIntro. * CToolIntro.
* *
* @ORM\Table( * @ORM\Table(
* name="c_tool_intro", * name="c_tool_intro",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,11 +13,11 @@ use Doctrine\ORM\Mapping as ORM;
* CWikiConf. * CWikiConf.
* *
* @ORM\Table( * @ORM\Table(
* name="c_wiki_conf", * name="c_wiki_conf",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="page_id", columns={"page_id"}) * @ORM\Index(name="page_id", columns={"page_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -13,10 +13,10 @@ use Doctrine\ORM\Mapping as ORM;
* CWikiDiscuss. * CWikiDiscuss.
* *
* @ORM\Table( * @ORM\Table(
* name="c_wiki_discuss", * name="c_wiki_discuss",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}) * @ORM\Index(name="course", columns={"c_id"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -9,15 +9,13 @@ namespace Chamilo\CourseBundle\Entity;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
/** /**
* CWikiMailcue.
*
* @ORM\Table( * @ORM\Table(
* name="c_wiki_mailcue", * name="c_wiki_mailcue",
* indexes={ * indexes={
* @ORM\Index(name="course", columns={"c_id"}), * @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="user", columns={"user_id"}), * @ORM\Index(name="user", columns={"user_id"}),
* @ORM\Index(name="c_id", columns={"c_id", "iid"}) * @ORM\Index(name="c_id", columns={"c_id", "iid"})
* } * }
* ) * )
* @ORM\Entity * @ORM\Entity
*/ */

@ -34,7 +34,7 @@ final class CShortcutRepository extends ResourceRepository
return $this->findOneBy($criteria); return $this->findOneBy($criteria);
} }
public function addShortCut(AbstractResource $resource, ResourceInterface $parent, Course $course, Session $session = null): ?CShortcut public function addShortCut(AbstractResource $resource, ResourceInterface $parent, Course $course, Session $session = null): CShortcut
{ {
$shortcut = $this->getShortcutFromResource($resource); $shortcut = $this->getShortcutFromResource($resource);

@ -51,7 +51,7 @@ class SettingsCourseManager extends SettingsManager
$schema->buildSettings($settingsBuilder); $schema->buildSettings($settingsBuilder);
// Remove unknown settings' parameters (e.g. From a previous version of the settings schema) // Remove unknown settings' parameters (e.g. From a previous version of the settings schema)
if (true === $ignoreUnknown) { if ($ignoreUnknown) {
foreach ($parameters as $name => $value) { foreach ($parameters as $name => $value) {
if (!$settingsBuilder->isDefined($name)) { if (!$settingsBuilder->isDefined($name)) {
unset($parameters[$name]); unset($parameters[$name]);

Loading…
Cancel
Save