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.
*
* @ORM\Table(
* name="c_attendance",
* indexes={
* @ORM\Index(name="active", columns={"active"})
* }
* name="c_attendance",
* indexes={
* @ORM\Index(name="active", columns={"active"})
* }
* )
* @ORM\Entity
*/

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -284,7 +284,7 @@ class CCalendarEvent extends AbstractResource implements ResourceInterface
}
/**
* @return Collection|CCalendarEventAttachment[]
* @return Collection
*/
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
{

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -19,14 +19,14 @@ use Symfony\Component\Validator\Constraints as Assert;
* CForumPost.
*
* @ORM\Table(
* name="c_forum_post",
* indexes={
* @ORM\Index(name="course", columns={"c_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_visible", columns={"visible"}),
* @ORM\Index(name="c_id_visible_post_date", columns={"c_id", "visible", "post_date"})
* }
* name="c_forum_post",
* indexes={
* @ORM\Index(name="course", columns={"c_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_visible", columns={"visible"}),
* @ORM\Index(name="c_id_visible_post_date", columns={"c_id", "visible", "post_date"})
* }
* )
* @ORM\Entity
*/

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

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

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

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

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

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

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

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

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

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

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

@ -12,15 +12,15 @@ use Doctrine\ORM\Mapping as ORM;
* CLpItemView.
*
* @ORM\Table(
* name="c_lp_item_view",
* indexes={
* @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="lp_item_id", columns={"lp_item_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_id_view_count", columns={"c_id", "iid", "view_count"})
* name="c_lp_item_view",
* indexes={
* @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="lp_item_id", columns={"lp_item_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_id_view_count", columns={"c_id", "iid", "view_count"})
*
* }
* }
* )
* @ORM\Entity
*/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -34,7 +34,7 @@ final class CShortcutRepository extends ResourceRepository
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);

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

Loading…
Cancel
Save