<?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="App\Entity\Intitule" table="intitule" repository-class="App\Entity\IntituleRepository">
    <id name="id" type="integer" column="id">
      <generator strategy="AUTO"/>
    </id>
    <field name="dateModification" type="datetime" column="dateModification" nullable="false"/>
    <field name="nom" type="string" column="nom" nullable="false"/>
    <field name="consigne" type="text" column="consigne" nullable="true"/>
    <field name="description" type="text" column="description" nullable="true"/>
    <field name="protocole" type="text" column="protocole" nullable="true"/>
    <field name="priorite" type="integer" column="priorite" nullable="true"/>
    <field name="optDefaut" type="boolean" column="optDefaut" nullable="true"/>
    <field name="optCc" type="boolean" column="optCc" nullable="true"/>
    <field name="optVisible" type="boolean" column="optVisible" nullable="true"/>
    <many-to-one field="structure" target-entity="Structure" inversed-by="intitules">
          <join-columns>
              <join-column name="structure_id" referenced-column-name="id" nullable="true" />
          </join-columns>
    </many-to-one>
    <one-to-many field="taches" target-entity="Tache" mapped-by="intitule">
        <cascade>
            <cascade-persist/>
            <cascade-remove/>
        </cascade>
    </one-to-many>
    <one-to-many field="intitulesValidable" target-entity="IntituleValidable" mapped-by="linkedIntitule">
        <cascade>
            <cascade-persist/>
            <cascade-remove/>
        </cascade>
    </one-to-many>
    <many-to-many field="fiches" target-entity="Fiche" mapped-by="categories">
    </many-to-many >
    <many-to-many field="fichesEspaces" target-entity="FicheEspace" mapped-by="categories">
    </many-to-many >
    <many-to-many field="espaces" target-entity="Espace" mapped-by="categories">
    </many-to-many >
  </entity>
</doctrine-mapping>
