<?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 repository-class="App\Entity\CahierRepository" name="App\Entity\Cahier">
    <id name="id" type="integer" column="id">
      <generator strategy="AUTO"/>
    </id>
    <field name="titre" type="string" column="titre" length="255"/>
    <field name="description" type="text" nullable="true" column="description"/>
    <field name="date" type="datetime" column="date"/>
    <field name="typeUrgence" type="string" column="typeUrgence" length="255"/>
    <field name="reponse" type="string" column="reponse" length="255" nullable="true"/>
    <field name="photo" type="string" column="photo" length="255" nullable="true"/>
    <field name="isArchive" type="boolean" column="isArchive"/>
    <many-to-one field="type" target-entity="App\Entity\TypeCahier">
      <join-columns>
        <join-column name="type_id" referenced-column-name="id" nullable="false"/>
      </join-columns>
    </many-to-one>
    <many-to-one field="auteur" target-entity="App\Entity\Personnel">
      <join-columns>
        <join-column name="auteur_id" referenced-column-name="id" nullable="false"/>
      </join-columns>
    </many-to-one>
    <many-to-one field="agent" target-entity="App\Entity\Personnel">
      <join-columns>
        <join-column name="agent_id" referenced-column-name="id" nullable="true"/>
      </join-columns>
    </many-to-one>
    <many-to-one field="structure" target-entity="App\Entity\Structure">
      <join-columns>
        <join-column name="structure_id" referenced-column-name="id" nullable="false"/>
      </join-columns>
    </many-to-one>
  </entity>
</doctrine-mapping>
