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.

Course.orm.xml 1.4KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
  5. http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
  6. <entity name="Logipro\Bundle\SCORMBundle\Entity\Course"
  7. table="sen_core_course">
  8. <id name="courseId" column="course_id" type="integer">
  9. <generator strategy="AUTO" />
  10. </id>
  11. <field name="creationDate" column="creation_date" type="datetimetz" />
  12. <field name="updateDate" column="updateDate" type="datetimetz" />
  13. <field name="maxVersion" column="max_version" type="integer" />
  14. <field name="versionRule" column="version_rule" type="string" length="50" />
  15. <field name="courseKey" column="course_key" type="string" length="255" />
  16. <one-to-many field="registrations" target-entity="Logipro\Bundle\SCORMBundle\Entity\Registration" mapped-by="course">
  17. <cascade>
  18. <cascade-remove />
  19. </cascade>
  20. </one-to-many>
  21. <!-- liaison entre cours et fichier zip -->
  22. <one-to-many field="mapCourseZipfiles" target-entity="Logipro\Bundle\SCORMBundle\Entity\MapCourseZipfile" mapped-by="course" fetch="LAZY"/>
  23. <lifecycle-callbacks>
  24. <lifecycle-callback type="prePersist" method="prePersist" />
  25. <lifecycle-callback type="preUpdate" method="preUpdate" />
  26. </lifecycle-callbacks>
  27. </entity>
  28. </doctrine-mapping>