<?php namespace App\Entity; use App\Entity\Comptoir; use App\Entity\Prestataire; use App\Entity\Transfert; use Doctrine\ORM\Mapping as ORM; /** * TRANSFERT * - PRESTATAIRES => COMPTOIRS (Reconversion) * * @ORM\Entity() */ class TransfertPrestataireComptoir extends Transfert { /** * @ORM\OneToOne(targetEntity="Prestataire") * @ORM\JoinColumn(name="prestataire_id", referencedColumnName="id", nullable=true) */ protected $expediteur; /** * @ORM\OneToOne(targetEntity="Comptoir") * @ORM\JoinColumn(name="comptoir_id", referencedColumnName="id", nullable=true) */ protected $destinataire; /** * @return string */ public function getType(): string { return 'prestataire_comptoir'; } }