No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Scorm2004.Scorm2004ObjectiveProgressInformation.orm.xml 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
  3. <entity repository-class="Logipro\Bundle\SCORMBundle\Repository\Scorm2004\Scorm2004ObjectiveProgressInformationRepository"
  4. name="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004ObjectiveProgressInformation"
  5. table="sen_scorm2004_objective_progress_information">
  6. <indexes>
  7. <index name="FK_objective" columns="objective_identifier"/>
  8. <index name="FK_attempt" columns="attempt_fk"/>
  9. <index name="FK_track_for_objective_progreee_information" columns="track_fk"/>
  10. <index name="FK_learner" columns="learner_fk"/>
  11. </indexes>
  12. <id name="objective_information_id" type="integer" column="objective_information_id">
  13. <generator strategy="AUTO"/>
  14. </id>
  15. <field name="progress_status" type="boolean" column="progress_status" nullable="false"/>
  16. <field name="satisfied_status" type="boolean" column="satisfied_status" nullable="false"/>
  17. <field name="measure_status" type="boolean" column="measure_status" nullable="false"/>
  18. <field name="normalized_measure" type="decimal" column="normalized_measure" precision="10" scale="7" nullable="false"/>
  19. <field name="attempt_progress_status" type="boolean" column="attempt_progress_status" nullable="false"/>
  20. <field name="attempt_completion_status" type="boolean" column="attempt_completion_status" nullable="false"/>
  21. <field name="attempt_completion_amount_status" type="boolean" column="attempt_completion_amount_status" nullable="false"/>
  22. <field name="attempt_completion_amount" type="decimal" column="attempt_completion_amount" precision="4" scale="1" nullable="false"/>
  23. <field name="score_scaled" type="decimal" column="score_scaled" precision="10" scale="7" nullable="false"/>
  24. <field name="score_raw" type="decimal" column="score_raw" precision="10" scale="7" nullable="false"/>
  25. <field name="score_min" type="decimal" column="score_min" precision="10" scale="7" nullable="false"/>
  26. <field name="score_max" type="decimal" column="score_max" precision="10" scale="7" nullable="false"/>
  27. <field name="description" type="text" column="description" nullable="false"/>
  28. <!-- liaison avec l'objectif -->
  29. <field name="itemIdentifier" type="string" column="item_identifier" length="255" nullable="true"/>
  30. <field name="objectiveIdentifier" type="string" column="objective_identifier" length="255" nullable="false"/>
  31. <field name="isPrimary" type="boolean" column="is_primary" nullable="false"/>
  32. <!-- essai pour lequel ces données sont enregistrées -->
  33. <many-to-one field="scorm2004AttemptProgressInformation" target-entity="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004AttemptProgressInformation" inversed-by="scorm2004ObjectiveProgressInformations" fetch="LAZY">
  34. <join-columns>
  35. <join-column name="attempt_fk" referenced-column-name="attempt_id" nullable="true"/>
  36. </join-columns>
  37. </many-to-one>
  38. <!-- track correspondant -->
  39. <many-to-one field="scorm2004Track" target-entity="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004Track" inversed-by="scorm2004ObjectiveProgressInformations" fetch="LAZY">
  40. <join-columns>
  41. <join-column name="track_fk" referenced-column-name="track_id" nullable="true"/>
  42. </join-columns>
  43. </many-to-one>
  44. <!-- Interaction correspondante -->
  45. <many-to-one field="scorm2004Interaction" target-entity="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004Interaction" inversed-by="scorm2004ObjectiveProgressInformations" fetch="LAZY">
  46. <join-columns>
  47. <join-column name="interaction_fk" referenced-column-name="interaction_id" nullable="true"/>
  48. </join-columns>
  49. </many-to-one>
  50. <!-- apprenant correspondant -->
  51. <many-to-one field="learner" target-entity="Logipro\Bundle\SCORMBundle\Entity\Learner" inversed-by="scorm2004ObjectiveProgressInformations" fetch="LAZY">
  52. <join-columns>
  53. <join-column name="learner_fk" referenced-column-name="learner_id" nullable="true"/>
  54. </join-columns>
  55. </many-to-one>
  56. <entity-listeners>
  57. <entity-listener class="Logipro\Bundle\SCORMBundle\EntityListener\Scorm2004ObjectiveProgressInformationListener">
  58. <lifecycle-callback type="preFlush" method="preFlush" />
  59. </entity-listener>
  60. </entity-listeners>
  61. </entity>
  62. </doctrine-mapping>