<?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\TacheValidable" repository-class="App\Entity\TacheValidableRepository">
    <id name="id" type="integer" column="id">
      <generator strategy="AUTO"/>
    </id>
    <field name="valide" type="boolean" column="valide"/>

    <many-to-one field="linkedTache" target-entity="App\Entity\Tache" inversed-by="tachesValidable" fetch="LAZY" >
      <join-columns>
        <join-column name="linked_tache_id" referenced-column-name="id" nullable="false"/>
      </join-columns>
    </many-to-one>
    <many-to-one field="intituleValidable" target-entity="App\Entity\IntituleValidable" inversed-by="tachesValidable" fetch="LAZY" >
      <join-columns>
        <join-column name="intitule_validable_id" referenced-column-name="id" nullable="false"/>
      </join-columns>
    </many-to-one>
  </entity>
</doctrine-mapping>
