src/Entity/Social.php line 26

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Interfaces\DefaultLinkedEntity;
  4. use App\Entity\Traits\ActiveTrait;
  5. use App\Entity\Traits\DeleteTrait;
  6. use App\Entity\Traits\ImageUploadTrait;
  7. use App\Entity\Traits\LinkTrait;
  8. use App\Entity\Traits\MetaTrait;
  9. use App\Entity\Traits\TitleAndContentTrait;
  10. use App\Entity\Traits\TranslateTrait;
  11. use Doctrine\ORM\Mapping as ORM;
  12. use Gedmo\Mapping\Annotation as Gedmo;
  13. use Gedmo\Timestampable\Traits\TimestampableEntity;
  14. /**
  15. * Social.
  16. *
  17. * @Gedmo\Loggable
  18. *
  19. * @Gedmo\TranslationEntity(class="App\Entity\SocialTranslations")
  20. */
  21. #[ORM\Entity(repositoryClass: \App\Repository\SocialRepository::class)]
  22. #[ORM\Table(name: 'social')]
  23. class Social implements DefaultLinkedEntity
  24. {
  25. use TitleAndContentTrait;
  26. use ActiveTrait;
  27. use DeleteTrait;
  28. use LinkTrait;
  29. use MetaTrait;
  30. use ImageUploadTrait;
  31. use TimestampableEntity;
  32. use TranslateTrait;
  33. #[ORM\Column(name: 'id', type: 'integer')]
  34. #[ORM\Id]
  35. #[ORM\GeneratedValue(strategy: 'AUTO')]
  36. private int $id;
  37. // REQUIRED BY THE META LINKS TRAIT
  38. public function getLinkedPageId(): int
  39. {
  40. // CW TODO _ SET THIS CORRECTLY
  41. return 0;
  42. }
  43. }