Commit c641cbf4 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Suppression many to one structure id au niveau de l'entité affectation_recherche

parent d4391e99
<?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="Application\Entity\Db\AffectationRecherche" table="AFFECTATION_RECHERCHE">
<indexes>
<index name="IDX_E876D3F259860CDC" columns="HISTO_CREATEUR_ID"/>
<index name="IDX_E876D3F27E9E2204" columns="HISTO_DESTRUCTEUR_ID"/>
<index name="IDX_E876D3F263F06898" columns="HISTO_MODIFICATEUR_ID"/>
<index name="IDX_E876D3F278FF2BCB" columns="INTERVENANT_ID"/>
<index name="IDX_E876D3F2E9B3446E" columns="SOURCE_ID"/>
<index name="IDX_E876D3F2884B0F7B" columns="STRUCTURE_ID"/>
</indexes>
<unique-constraints>
<unique-constraint name="affectation_is_un" columns="INTERVENANT_ID,STRUCTURE_ID"/>
<unique-constraint name="affectation_src_un" columns="SOURCE_CODE"/>
</unique-constraints>
<id name="id" type="integer" column="ID">
<generator strategy="SEQUENCE"/>
</id>
<field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
<field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
<field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
<field name="sourceCode" type="string" column="SOURCE_CODE" length="100" nullable="true"/>
<many-to-one field="source" target-entity="UnicaenImport\Entity\Db\Source">
<join-columns>
<join-column name="SOURCE_ID" referenced-column-name="ID"/>
</join-columns>
</many-to-one>
<many-to-one field="structure" target-entity="Application\Entity\Db\Structure">
<join-columns>
<join-column name="STRUCTURE_ID" referenced-column-name="ID"/>
</join-columns>
</many-to-one>
<many-to-one field="intervenant" target-entity="Application\Entity\Db\Intervenant">
<join-columns>
<join-column name="INTERVENANT_ID" referenced-column-name="ID"/>
</join-columns>
</many-to-one>
<many-to-one field="histoModificateur" target-entity="Application\Entity\Db\Utilisateur">
<join-columns>
<join-column name="HISTO_MODIFICATEUR_ID" referenced-column-name="ID"/>
</join-columns>
</many-to-one>
<many-to-one field="histoDestructeur" target-entity="Application\Entity\Db\Utilisateur">
<join-columns>
<join-column name="HISTO_DESTRUCTEUR_ID" referenced-column-name="ID"/>
</join-columns>
</many-to-one>
<many-to-one field="histoCreateur" target-entity="Application\Entity\Db\Utilisateur">
<join-columns>
<join-column name="HISTO_CREATEUR_ID" referenced-column-name="ID"/>
</join-columns>
</many-to-one>
</entity>
<entity name="Application\Entity\Db\AffectationRecherche" table="AFFECTATION_RECHERCHE">
<indexes>
<index name="IDX_E876D3F259860CDC" columns="HISTO_CREATEUR_ID"/>
<index name="IDX_E876D3F27E9E2204" columns="HISTO_DESTRUCTEUR_ID"/>
<index name="IDX_E876D3F263F06898" columns="HISTO_MODIFICATEUR_ID"/>
<index name="IDX_E876D3F278FF2BCB" columns="INTERVENANT_ID"/>
<index name="IDX_E876D3F2E9B3446E" columns="SOURCE_ID"/>
<index name="IDX_E876D3F2884B0F7B" columns="STRUCTURE_ID"/>
</indexes>
<unique-constraints>
<unique-constraint name="affectation_is_un" columns="INTERVENANT_ID,STRUCTURE_ID"/>
<unique-constraint name="affectation_src_un" columns="SOURCE_CODE"/>
</unique-constraints>
<id name="id" type="integer" column="ID">
<generator strategy="SEQUENCE"/>
</id>
<field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
<field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
<field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
<field name="sourceCode" type="string" column="SOURCE_CODE" length="100" nullable="true"/>
<field name="structure_id" type="string" column="STRUCTURE_ID" length="100" nullable="true"/>
<many-to-one field="source" target-entity="UnicaenImport\Entity\Db\Source">
<join-columns>
<join-column name="SOURCE_ID" referenced-column-name="ID"/>
</join-columns>
</many-to-one>
<many-to-one field="intervenant" target-entity="Application\Entity\Db\Intervenant">
<join-columns>
<join-column name="INTERVENANT_ID" referenced-column-name="ID"/>
</join-columns>
</many-to-one>
<many-to-one field="histoModificateur" target-entity="Application\Entity\Db\Utilisateur">
<join-columns>
<join-column name="HISTO_MODIFICATEUR_ID" referenced-column-name="ID"/>
</join-columns>
</many-to-one>
<many-to-one field="histoDestructeur" target-entity="Application\Entity\Db\Utilisateur">
<join-columns>
<join-column name="HISTO_DESTRUCTEUR_ID" referenced-column-name="ID"/>
</join-columns>
</many-to-one>
<many-to-one field="histoCreateur" target-entity="Application\Entity\Db\Utilisateur">
<join-columns>
<join-column name="HISTO_CREATEUR_ID" referenced-column-name="ID"/>
</join-columns>
</many-to-one>
</entity>
</doctrine-mapping>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment