Commit 27fc4382 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

ODF_ETAPE_DIPLOME

parent 18b5caec
Loading
Loading
Loading
Loading
+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="Octopus\Entity\Db\OffreDeFormationEtapeDiplome" table="ODF_ETAPE_DIPLOME">

        <many-to-one target-entity="Octopus\Entity\Db\OffreDeFormationEtape" field="etape">
            <join-column name="ETAPE_ID" referenced-column-name="ID" />
        </many-to-one>

        <many-to-one target-entity="Octopus\Entity\Db\OffreDeFormationDiplome" field="diplome">
            <join-column name="DIPLOME_ID" referenced-column-name="ID" />
        </many-to-one>

        <field name="cursus"            column="CURSUS_ANNEE"           type="string" length="2"            nullable="true" />
        <field name="niveau"            column="NIV_ETUDE"           type="string" length="2"            nullable="true" />

    </entity>
</doctrine-mapping>
 No newline at end of file
+47 −0
Original line number Diff line number Diff line
<?php

namespace Octopus\Entity\Db;

class OffreDeFormationDiplome {

    /** @var OffreDeFormationEtape */
    private $etape;
    /** @var OffreDeFormationDiplome */
    private $diplome;
    /** @var string */
    private $cursus;
    /** @var string */
    private $annee;

    /**
     * @return OffreDeFormationEtape
     */
    public function getEtape()
    {
        return $this->etape;
    }

    /**
     * @return OffreDeFormationDiplome
     */
    public function getDiplome()
    {
        return $this->diplome;
    }

    /**
     * @return string
     */
    public function getCursus()
    {
        return $this->cursus;
    }

    /**
     * @return string
     */
    public function getAnnee()
    {
        return $this->annee;
    }
}
 No newline at end of file