src/Entity/Profile/Video.php line 16

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by simpson <simpsonwork@gmail.com>
  4.  * Date: 2019-03-21
  5.  * Time: 19:53
  6.  */
  7. namespace App\Entity\Profile;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10.  * @see Photo for inheritance mapping config
  11.  */
  12. #[ORM\Entity]
  13. class Video extends Photo
  14. {
  15.     #[ORM\JoinColumn(name'profile_id'referencedColumnName'id')]
  16.     #[ORM\ManyToOne(targetEntityProfile::class, inversedBy'videos')]
  17.     protected Profile $profile;
  18.     public function getType(): string {
  19.         return self::TYPE_VIDEO;
  20.     }
  21. }