123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?xml version="1.0" encoding="utf-8"?>
- <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">
- <entity name="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004AttemptProgressInformation"
- table="sen_scorm2004_attempt_progress_information">
-
- <indexes>
- <index name="FK_track_for_attempt_progress_information" columns="track_fk"/>
- <index name="FK_item" columns="item_identifier"/>
- </indexes>
-
- <id name="attempt_id" type="integer" column="attempt_id">
- <generator strategy="AUTO"/>
- </id>
-
- <field name="progress_status" type="boolean" column="progress_status" nullable="false"/>
- <field name="completion_status" type="boolean" column="completion_status" nullable="false"/>
- <field name="completion_amount_status" type="boolean" column="completion_amount_status" nullable="false"/>
- <field name="completion_amount" type="decimal" column="completion_amount" precision="2" scale="1" nullable="false"/>
- <field name="date_creation" type="datetime" column="date_creation" nullable="false"/>
- <field name="experienced_duration" type="decimal" column="experienced_duration" precision="10" scale="2" nullable="false"/>
- <field name="total_time" type="decimal" column="total_time" precision="10" scale="2" nullable="false"/>
- <field name="absolute_duration" type="decimal" column="absolute_duration" precision="10" scale="2" nullable="false"/>
- <field name="satisfied_status" type="boolean" column="satisfied_status" nullable="false"/>
- <field name="measure_status" type="boolean" column="measure_status" nullable="false"/>
- <field name="suspend_data" type="text" column="suspend_data" nullable="false"/>
-
- <!-- item sur lequel l'essai est tenté -->
- <field name="item_identifier" type="string" column="item_identifier" length="255" nullable="false"/>
-
-
- <!-- Interactions liées à l'essai -->
- <one-to-many field="scorm2004Interactions" target-entity="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004Interaction" mapped-by="scorm2004AttemptProgressInformation" fetch="LAZY">
- <cascade>
- <cascade-remove />
- </cascade>
- </one-to-many>
-
- <!-- valeurs courantes des objectifs pour l'essai -->
- <one-to-many field="scorm2004ObjectiveProgressInformations" target-entity="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004ObjectiveProgressInformation" mapped-by="scorm2004AttemptProgressInformation" fetch="LAZY">
- <cascade>
- <cascade-remove />
- </cascade>
- </one-to-many>
-
-
- <!-- track auquel est relié l'essai -->
- <many-to-one field="scorm2004Track" target-entity="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004Track" inversed-by="scorm2004AttemptProgressInformations" fetch="LAZY">
- <join-columns>
- <join-column name="track_fk" referenced-column-name="track_id" nullable=""/>
- </join-columns>
- </many-to-one>
-
-
- <entity-listeners>
- <entity-listener class="Logipro\Bundle\SCORMBundle\EntityListener\Scorm2004AttemptProgressInformationListener">
- <lifecycle-callback type="preFlush" method="preFlush" />
- </entity-listener>
- </entity-listeners>
-
-
- <lifecycle-callbacks>
- <lifecycle-callback type="prePersist" method="prePersist" />
- </lifecycle-callbacks>
-
- </entity>
- </doctrine-mapping>
|