<?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\FournisseurRepository" name="App\Entity\Fournisseur">
    <id name="id" type="integer" column="id">
      <generator strategy="AUTO"/>
    </id>

    <field name="nomEtab" type="string" column="nomEtab" length="255" nullable="false"/>
    <field name="adresse" type="string" column="adresse" length="255" nullable="true"/>
    <field name="description" type="string" column="description" length="255" nullable="true"/>
    <field name="telephone" type="string" column="telephone" nullable="false"/>
    <field name="siret" type="string" column="siret" nullable="true"/>
    <field name="nomDirigeant" type="string" column="nomDirigeant" length="255" nullable="true"/>
    <field name="nomResponsable" type="string" column="nomResponsable" length="255" nullable="false"/>
    <field name="email" type="string" column="email" length="255" nullable="false"/>
    <many-to-one field="structure" target-entity="Structure">
        <join-columns>
            <join-column name="structure_id" referenced-column-name="id" nullable="false" />
        </join-columns>
    </many-to-one>
  </entity>
</doctrine-mapping>
