Commit 1cc09b5d authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

correction intervenant

parent 16d6c6d6
Loading
Loading
Loading
Loading
+0 −25
Changes for module/Application/src/Entity/Db/Intervenant.php: 0 added lines, 25 removed lines.
Original line number Diff line number Diff line
@@ -291,11 +291,6 @@ class Intervenant implements HistoriqueAwareInterface, ResourceInterface, Import
     */
    protected $missions;

    /**
     * @var Collection
     */
    protected $offresEmplois;

    /**
     * Cache
     *
@@ -1628,26 +1623,6 @@ class Intervenant implements HistoriqueAwareInterface, ResourceInterface, Import



    /**
     * Get missions
     *
     * @return Collection|OffreEmploi[]
     */
    public function getOffresEmplois(): ?Collection
    {
        if (null === $this->offresEmplois) {
            return null;
        }

        $filter = function (OffreEmploi $offre) {
            return ($offre->estHistorise()) ? false : true;
        };

        return $this->offresEmplois->filter($filter);
    }



    /**
     * @return bool
     */
+0 −1
Changes for module/Application/src/Entity/Db/Mapping/Application.Entity.Db.Intervenant.dcm.xml: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -137,6 +137,5 @@
        <one-to-many field="indicModifDossier" target-entity="Indicateur\Entity\Db\IndicModifDossier"
                     mapped-by="intervenant"/>
        <one-to-many field="missions" target-entity="Mission\Entity\Db\Mission" mapped-by="intervenant"/>
        <many-to-many field="offresEmplois" target-entity="Mission\Entity\Db\OffreEmploi" mapped-by="etudiants"/>
    </entity>
</doctrine-mapping>