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.Scorm2004AttemptProgressInformation.orm.xml 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 name="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004AttemptProgressInformation"
  4. table="sen_scorm2004_attempt_progress_information">
  5. <indexes>
  6. <index name="FK_track_for_attempt_progress_information" columns="track_fk"/>
  7. <index name="FK_item" columns="item_identifier"/>
  8. </indexes>
  9. <id name="attempt_id" type="integer" column="attempt_id">
  10. <generator strategy="AUTO"/>
  11. </id>
  12. <field name="progress_status" type="boolean" column="progress_status" nullable="false"/>
  13. <field name="completion_status" type="boolean" column="completion_status" nullable="false"/>
  14. <field name="completion_amount_status" type="boolean" column="completion_amount_status" nullable="false"/>
  15. <field name="completion_amount" type="decimal" column="completion_amount" precision="2" scale="1" nullable="false"/>
  16. <field name="date_creation" type="datetime" column="date_creation" nullable="false"/>
  17. <field name="experienced_duration" type="decimal" column="experienced_duration" precision="10" scale="2" nullable="false"/>
  18. <field name="total_time" type="decimal" column="total_time" precision="10" scale="2" nullable="false"/>
  19. <field name="absolute_duration" type="decimal" column="absolute_duration" precision="10" scale="2" nullable="false"/>
  20. <field name="satisfied_status" type="boolean" column="satisfied_status" nullable="false"/>
  21. <field name="measure_status" type="boolean" column="measure_status" nullable="false"/>
  22. <field name="suspend_data" type="text" column="suspend_data" nullable="false"/>
  23. <!-- item sur lequel l'essai est tenté -->
  24. <field name="item_identifier" type="string" column="item_identifier" length="255" nullable="false"/>
  25. <!-- Interactions liées à l'essai -->
  26. <one-to-many field="scorm2004Interactions" target-entity="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004Interaction" mapped-by="scorm2004AttemptProgressInformation" fetch="LAZY">
  27. <cascade>
  28. <cascade-remove />
  29. </cascade>
  30. </one-to-many>
  31. <!-- valeurs courantes des objectifs pour l'essai -->
  32. <one-to-many field="scorm2004ObjectiveProgressInformations" target-entity="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004ObjectiveProgressInformation" mapped-by="scorm2004AttemptProgressInformation" fetch="LAZY">
  33. <cascade>
  34. <cascade-remove />
  35. </cascade>
  36. </one-to-many>
  37. <!-- track auquel est relié l'essai -->
  38. <many-to-one field="scorm2004Track" target-entity="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004Track" inversed-by="scorm2004AttemptProgressInformations" fetch="LAZY">
  39. <join-columns>
  40. <join-column name="track_fk" referenced-column-name="track_id" nullable=""/>
  41. </join-columns>
  42. </many-to-one>
  43. <entity-listeners>
  44. <entity-listener class="Logipro\Bundle\SCORMBundle\EntityListener\Scorm2004AttemptProgressInformationListener">
  45. <lifecycle-callback type="preFlush" method="preFlush" />
  46. </entity-listener>
  47. </entity-listeners>
  48. <lifecycle-callbacks>
  49. <lifecycle-callback type="prePersist" method="prePersist" />
  50. </lifecycle-callbacks>
  51. </entity>
  52. </doctrine-mapping>