src/Entity/Profile/AdminApprovalPhoto.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Profile;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @see Photo for inheritance mapping config
  6.  */
  7. #[ORM\Entity]
  8. class AdminApprovalPhoto extends Photo
  9. {
  10.     #[ORM\JoinColumn(name'profile_id'referencedColumnName'id')]
  11.     #[ORM\ManyToOne(targetEntityProfile::class, inversedBy'adminApprovalPhotos')]
  12.     protected Profile $profile;
  13.     public function getType(): string {
  14.         return self::TYPE_ADMIN_APPROVAL_PHOTO;
  15.     }
  16. }