123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?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 repository-class="Logipro\Bundle\SCORMBundle\Repository\Scorm2004\Scorm2004ObjectiveProgressInformationRepository"
- name="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004ObjectiveProgressInformation"
- table="sen_scorm2004_objective_progress_information">
-
- <indexes>
- <index name="FK_objective" columns="objective_identifier"/>
- <index name="FK_attempt" columns="attempt_fk"/>
- <index name="FK_track_for_objective_progreee_information" columns="track_fk"/>
- <index name="FK_learner" columns="learner_fk"/>
- </indexes>
-
- <id name="objective_information_id" type="integer" column="objective_information_id">
- <generator strategy="AUTO"/>
- </id>
-
- <field name="progress_status" type="boolean" column="progress_status" 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="normalized_measure" type="decimal" column="normalized_measure" precision="10" scale="7" nullable="false"/>
- <field name="attempt_progress_status" type="boolean" column="attempt_progress_status" nullable="false"/>
- <field name="attempt_completion_status" type="boolean" column="attempt_completion_status" nullable="false"/>
- <field name="attempt_completion_amount_status" type="boolean" column="attempt_completion_amount_status" nullable="false"/>
- <field name="attempt_completion_amount" type="decimal" column="attempt_completion_amount" precision="4" scale="1" nullable="false"/>
- <field name="score_scaled" type="decimal" column="score_scaled" precision="10" scale="7" nullable="false"/>
- <field name="score_raw" type="decimal" column="score_raw" precision="10" scale="7" nullable="false"/>
- <field name="score_min" type="decimal" column="score_min" precision="10" scale="7" nullable="false"/>
- <field name="score_max" type="decimal" column="score_max" precision="10" scale="7" nullable="false"/>
- <field name="description" type="text" column="description" nullable="false"/>
-
- <!-- liaison avec l'objectif -->
- <field name="itemIdentifier" type="string" column="item_identifier" length="255" nullable="true"/>
- <field name="objectiveIdentifier" type="string" column="objective_identifier" length="255" nullable="false"/>
- <field name="isPrimary" type="boolean" column="is_primary" nullable="false"/>
-
- <!-- essai pour lequel ces données sont enregistrées -->
- <many-to-one field="scorm2004AttemptProgressInformation" target-entity="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004AttemptProgressInformation" inversed-by="scorm2004ObjectiveProgressInformations" fetch="LAZY">
- <join-columns>
- <join-column name="attempt_fk" referenced-column-name="attempt_id" nullable="true"/>
- </join-columns>
- </many-to-one>
-
- <!-- track correspondant -->
- <many-to-one field="scorm2004Track" target-entity="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004Track" inversed-by="scorm2004ObjectiveProgressInformations" fetch="LAZY">
- <join-columns>
- <join-column name="track_fk" referenced-column-name="track_id" nullable="true"/>
- </join-columns>
- </many-to-one>
-
- <!-- Interaction correspondante -->
- <many-to-one field="scorm2004Interaction" target-entity="Logipro\Bundle\SCORMBundle\Entity\Scorm2004\Scorm2004Interaction" inversed-by="scorm2004ObjectiveProgressInformations" fetch="LAZY">
- <join-columns>
- <join-column name="interaction_fk" referenced-column-name="interaction_id" nullable="true"/>
- </join-columns>
- </many-to-one>
-
- <!-- apprenant correspondant -->
- <many-to-one field="learner" target-entity="Logipro\Bundle\SCORMBundle\Entity\Learner" inversed-by="scorm2004ObjectiveProgressInformations" fetch="LAZY">
- <join-columns>
- <join-column name="learner_fk" referenced-column-name="learner_id" nullable="true"/>
- </join-columns>
- </many-to-one>
-
- <entity-listeners>
- <entity-listener class="Logipro\Bundle\SCORMBundle\EntityListener\Scorm2004ObjectiveProgressInformationListener">
- <lifecycle-callback type="preFlush" method="preFlush" />
- </entity-listener>
- </entity-listeners>
-
- </entity>
- </doctrine-mapping>
|