<?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\PostForExterne" table="postforexterne">
    <id name="id" type="integer" column="id">
      <generator strategy="AUTO"/>
    </id>
    <field name="titre" type="string" column="titre" length="255" nullable="false" unique="true" />
    <field name="contenu" type="text" column="contenu"/>
    <field name="type" type="string" column="type"/>
    <many-to-one field="structure" target-entity="Structure" inversed-by="contenus">
          <join-columns>
              <join-column name="structure_id" referenced-column-name="id" nullable="true" />
          </join-columns>
    </many-to-one>

  </entity>
</doctrine-mapping>
