Commit e45f2a2f authored by Jean-Baptiste Oellers's avatar Jean-Baptiste Oellers
Browse files

Ajout des fichiers de mapping doctrine des entités Autoform

parent c6da3027
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
<?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 http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
    <entity name="UnicaenAutoform\Entity\Db\Categorie" table="unicaen_autoform_categorie">

        <id name="id"                   column="id"                 type="integer">
            <generator strategy="IDENTITY"/>
        </id>

        <field name="code"              column="code"               type="string"    length="64"     nullable="false" />
        <field name="libelle"           column="libelle"            type="string"    length="256"    nullable="false" />
        <field name="ordre"             column="ordre"              type="integer"                   nullable="false" />
        <field name="motsClefs"         column="mots_clefs"         type="string"    length="1024"   nullable="true" />

        <many-to-one target-entity="UnicaenAutoform\Entity\Db\Formulaire"  field="formulaire" inversed-by="categories">
            <join-column name="formulaire" referenced-column-name="id"/>
        </many-to-one>

        <one-to-many target-entity="UnicaenAutoform\Entity\Db\Champ" mapped-by="categorie" field="champs"/>

        <field name="histoCreation"     type="datetime"                 column="histo_creation"     nullable="false"/>
        <field name="histoModification" type="datetime"                 column="histo_modification" nullable="false"/>
        <field name="histoDestruction"  type="datetime"                 column="histo_destruction"  nullable="true"/>

        <many-to-one target-entity="Oscar\Entity\Authentification"  field="histoCreateur">
            <join-column name="histo_createur_id" referenced-column-name="id"/>
        </many-to-one>
        <many-to-one target-entity="Oscar\Entity\Authentification"  field="histoModificateur">
            <join-column name="histo_modificateur_id" referenced-column-name="id"/>
        </many-to-one>
        <many-to-one target-entity="Oscar\Entity\Authentification"  field="histoDestructeur">
            <join-column name="histo_destructeur_id" referenced-column-name="id"/>
        </many-to-one>


    </entity>
</doctrine-mapping>
+42 −0
Original line number Diff line number Diff line
<?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 http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
    <entity name="UnicaenAutoform\Entity\Db\Champ" table="unicaen_autoform_champ">

        <id name="id"                   column="id"                 type="integer">
            <generator strategy="IDENTITY"/>
        </id>

        <many-to-one target-entity="UnicaenAutoform\Entity\Db\Categorie"  field="categorie" inversed-by="champs">
            <join-column name="categorie" referenced-column-name="id"/>
        </many-to-one>

        <field name="code"              column="code"               type="string"    length="64"     nullable="false" />
        <field name="libelle"           column="libelle"            type="string"    length="256"    nullable="false" />
        <field name="texte"             column="texte"              type="string"    length="256"    nullable="false" />
        <field name="ordre"             column="ordre"              type="integer"                   nullable="false" />
        <field name="balise"            column="balise"             type="string"                   nullable="true" />
        <field name="options"           column="options"            type="string"    length="1024"   nullable="true" />
        <field name="motsClefs"         column="mots_clefs"         type="string"    length="1024"   nullable="true" />
        <field name="obligatoire"       column="obligatoire"        type="boolean"                                    />

        <field name="histoCreation"     type="datetime"                 column="histo_creation"     nullable="false"/>
        <field name="histoModification" type="datetime"                 column="histo_modification" nullable="false"/>
        <field name="histoDestruction"  type="datetime"                 column="histo_destruction"  nullable="true"/>

        <many-to-one target-entity="UnicaenAutoform\Entity\Db\ChampType"  field="type" inversed-by="champs">
            <join-column name="element" referenced-column-name="code"/>
        </many-to-one>

        <many-to-one target-entity="Oscar\Entity\Authentification"  field="histoCreateur">
            <join-column name="histo_createur_id" referenced-column-name="id"/>
        </many-to-one>
        <many-to-one target-entity="Oscar\Entity\Authentification"  field="histoModificateur">
            <join-column name="histo_modificateur_id" referenced-column-name="id"/>
        </many-to-one>
        <many-to-one target-entity="Oscar\Entity\Authentification"  field="histoDestructeur">
            <join-column name="histo_destructeur_id" referenced-column-name="id"/>
        </many-to-one>


    </entity>
</doctrine-mapping>
+19 −0
Original line number Diff line number Diff line
<?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://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
    <entity name="UnicaenAutoform\Entity\Db\ChampType" table="unicaen_autoform_champ_type">

        <id name="code"                 column="code"               length="256">
        </id>

        <field name="libelle"           column="libelle"            length="1024"/>
        <field name="description"       column="description"        type="text"    nullable="true" />
        <field name="usage"             column="usage"              type="text"    nullable="true" />
        <field name="exempleLibelle"    column="example_libelle"    length="2048"  nullable="true" />
        <field name="exempleOptions"    column="example_options"    length="2048"  nullable="true" />
        <field name="exempleTexte"      column="example_texte"      length="2048"  nullable="true" />
        <field name="exempleReponse"    column="example_reponse"    length="2048"  nullable="true" />

        <one-to-many target-entity="UnicaenAutoform\Entity\Db\Champ" mapped-by="type" field="champs"/>

    </entity>
</doctrine-mapping>
 No newline at end of file
+29 −0
Original line number Diff line number Diff line
<?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 http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
    <entity name="UnicaenAutoform\Entity\Db\Formulaire" table="unicaen_autoform_formulaire">

        <id name="id"                   column="id"                 type="integer">
            <generator strategy="IDENTITY"/>
        </id>

        <field name="libelle"           column="libelle"            type="string"    length="128"    nullable="false" />
        <field name="description"       column="description"        type="string"    length="2048"   nullable="false" />
        <field name="code"              column="code"               type="string"    length="256"    nullable="false" />

        <one-to-many target-entity="UnicaenAutoform\Entity\Db\Categorie" mapped-by="formulaire" field="categories"/>

        <field name="histoCreation"     type="datetime"                 column="histo_creation"     nullable="false"/>
        <field name="histoModification" type="datetime"                 column="histo_modification" nullable="false"/>
        <field name="histoDestruction"  type="datetime"                 column="histo_destruction"  nullable="true"/>

        <many-to-one target-entity="Oscar\Entity\Authentification"  field="histoCreateur">
            <join-column name="histo_createur_id" referenced-column-name="id"/>
        </many-to-one>
        <many-to-one target-entity="Oscar\Entity\Authentification"  field="histoModificateur">
            <join-column name="histo_modificateur_id" referenced-column-name="id"/>
        </many-to-one>
        <many-to-one target-entity="Oscar\Entity\Authentification"  field="histoDestructeur">
            <join-column name="histo_destructeur_id" referenced-column-name="id"/>
        </many-to-one>
    </entity>
</doctrine-mapping>
+28 −0
Original line number Diff line number Diff line
<?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 http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
    <entity name="UnicaenAutoform\Entity\Db\FormulaireInstance" table="unicaen_autoform_formulaire_instance">

        <id name="id"                   column="id"                 type="integer">
            <generator strategy="IDENTITY"/>
        </id>

        <many-to-one target-entity="UnicaenAutoform\Entity\Db\Formulaire"  field="formulaire">
            <join-column name="formulaire" referenced-column-name="id"/>
        </many-to-one>
        <one-to-many target-entity="UnicaenAutoform\Entity\Db\FormulaireReponse"   mapped-by="instance" field="reponses"/>

        <field name="histoCreation"     type="datetime"                 column="histo_creation"     nullable="false"/>
        <field name="histoModification" type="datetime"                 column="histo_modification" nullable="false"/>
        <field name="histoDestruction"  type="datetime"                 column="histo_destruction"  nullable="true"/>

        <many-to-one target-entity="Oscar\Entity\Authentification"  field="histoCreateur">
            <join-column name="histo_createur_id" referenced-column-name="id"/>
        </many-to-one>
        <many-to-one target-entity="Oscar\Entity\Authentification"  field="histoModificateur">
            <join-column name="histo_modificateur_id" referenced-column-name="id"/>
        </many-to-one>
        <many-to-one target-entity="Oscar\Entity\Authentification"  field="histoDestructeur">
            <join-column name="histo_destructeur_id" referenced-column-name="id"/>
        </many-to-one>
    </entity>
</doctrine-mapping>
Loading