<?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\SousCategorieRepository" name="App\Entity\SousCategorie">
    <id name="id" type="integer" column="id">
      <generator strategy="AUTO"/>
    </id>
    <field name="titre" type="string" column="titre" nullable="false"/>
    <field name="description" type="text" column="description"/>
    <field name="categorie" type="string" column="mode" nullable="false"/>
    <field name="photo" type="string" column="photo" length="255" nullable="true"/>

    <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>

     <one-to-many field="tickets" target-entity="App\Entity\Ticket" mapped-by="sousCategorie">
    </one-to-many>
  </entity>
</doctrine-mapping>
