src/Entity/Sales/Profile/PlacementHiding.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Sales\Profile;
  3. use App\Entity\Profile\Profile;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity]
  6. class PlacementHiding extends \App\Entity\Sales\PlacementHiding
  7. {
  8.     #[ORM\JoinColumn(name'profile_id'referencedColumnName'id')]
  9.     #[ORM\OneToOne(targetEntityProfile::class)]
  10.     protected Profile $profile;
  11.     public function __construct(Profile $profile\DateTimeImmutable $placedAt\DateTimeImmutable $placedUntil)
  12.     {
  13.         $this->profile $profile;
  14.         parent::__construct($placedAt$placedUntil);
  15.     }
  16.     
  17.     public function getProfile(): Profile
  18.     {
  19.         return $this->profile;
  20.     }
  21. }