Commit 6fba73fe authored by Jean-Baptiste Oellers's avatar Jean-Baptiste Oellers
Browse files

Ajout configuration doctrine pour entités renderer

parent 3d2d923f
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -469,6 +469,7 @@ return array(
                    'Oscar\Entity' => 'oscar_entities',
                    'UnicaenSignature\Entity' => 'oscar_entities',
                    'UnicaenAutoform\Entity\Db' => 'orm_oscar_xml_driver',
                    'UnicaenRenderer\Entity\Db' => 'orm_oscar_xml_driver',
                ],
            ],
            'orm_oscar_xml_driver' => [
@@ -476,6 +477,7 @@ return array(
                'cache' => 'apc',
                'paths' => [
                    __DIR__ . '/autoform/Mapping',
                    __DIR__ . '/renderer/Mapping',
                ],
            ],
            'oscar_entities' => array(
+15 −0
Original line number Diff line number Diff line
<?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="UnicaenRenderer\Entity\Db\Macro" table="unicaen_renderer_macro">

        <id name="id"                   column="id"                 type="integer">
            <generator strategy="IDENTITY"/>
        </id>

        <field name="code"              column="code"               type="string"    length="256"     nullable="false" />
        <field name="description"       column="description"        type="string"    length="4096"    nullable="false" />
        <field name="variable"          column="variable_name"      type="string"    length="256"     nullable="false" />
        <field name="methode"           column="methode_name"       type="string"    length="256"     nullable="false" />

    </entity>
</doctrine-mapping>
 No newline at end of file
+17 −0
Original line number Diff line number Diff line
<?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="UnicaenRenderer\Entity\Db\Rendu" table="unicaen_renderer_rendu">

        <id name="id"                   column="id"                 type="integer">
            <generator strategy="IDENTITY"/>
        </id>

        <many-to-one target-entity="UnicaenRenderer\Entity\Db\Template"  field="template">
            <join-column name="template_id" referenced-column-name="id"/>
        </many-to-one>
        <field name="date"              column="date_generation"        type="datetime"                   nullable="false"/>
        <field name="sujet"             column="sujet"                  type="string"    length="9999"    nullable="false" />
        <field name="corps"             column="corps"                  type="string"    length="9999"    nullable="false" />

    </entity>
</doctrine-mapping>
 No newline at end of file
+19 −0
Original line number Diff line number Diff line
<?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="UnicaenRenderer\Entity\Db\Template" table="unicaen_renderer_template">

        <id name="id"                   column="id"                 type="integer">
            <generator strategy="IDENTITY"/>
        </id>

        <field name="code"              column="code"                   type="string"    length="256"     nullable="false" />
        <field name="description"       column="description"            type="string"    length="4096"    nullable="false" />
        <field name="namespace"         column="namespace"              type="string"    length="1024"    nullable="false" />
        <field name="engine"            column="engine"                 type="string"    length="64"      nullable="false" />
        <field name="type"              column="document_type"          type="string"    length="256"     nullable="false" />
        <field name="sujet"             column="document_sujet"         type="string"    length="4096"    nullable="false" />
        <field name="corps"             column="document_corps"         type="string"    length="4096"    nullable="false" />
        <field name="css"               column="document_css"           type="string"    length="4096"    nullable="false" />

    </entity>
</doctrine-mapping>
 No newline at end of file