lib/composer/BlogBundle/src/VisualMedia/BlogBundle/Entity/BaseBlogCategoryContent.php line 28

Open in your IDE?
  1. <?php
  2. /**
  3. * Base Blog Category Content
  4. *
  5. * @author Vincent van Waasbergen <v.vanwaasbergen@visualmedia.nl>
  6. */
  7. namespace VisualMedia\BlogBundle\Entity;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use VisualMedia\LisaBundle\Annotation\GenericAnnotation;
  10. use VisualMedia\LisaBundle\Component\Interfaces\EntityInterface;
  11. use VisualMedia\LisaBundle\Traits\AutoIdTrait;
  12. use VisualMedia\LisaBundle\Traits\BlameableTrait;
  13. use VisualMedia\LisaBundle\Traits\TimestampableTrait;
  14. use VisualMedia\BlogBundle\Model\BaseBlogCategoryContentModel;
  15. /**
  16. * Base Blog Category Content
  17. *
  18. * @ORM\Entity(repositoryClass="VisualMedia\BlogBundle\Manager\BaseBlogCategoryContentManager")
  19. * @ORM\Table(name="blog_category_content")
  20. *
  21. * @ORM\InheritanceType("SINGLE_TABLE")
  22. * @ORM\DiscriminatorColumn(name="discriminator", type="string")
  23. */
  24. class BaseBlogCategoryContent extends BaseBlogCategoryContentModel implements EntityInterface
  25. {
  26. use AutoIdTrait;
  27. use BlameableTrait;
  28. use TimestampableTrait;
  29. /**
  30. * @ORM\ManyToOne(targetEntity="VisualMedia\TranslationBundle\Entity\BaseChannel")
  31. * @ORM\JoinColumn(name="channel_id", referencedColumnName="id", onDelete="CASCADE")
  32. */
  33. public $channel;
  34. /**
  35. * @ORM\ManyToOne(targetEntity="VisualMedia\TranslationBundle\Entity\BaseLocale")
  36. * @ORM\JoinColumn(name="locale_id", referencedColumnName="id", onDelete="CASCADE")
  37. */
  38. public $locale;
  39. /**
  40. * @ORM\ManyToOne(targetEntity="VisualMedia\BlogBundle\Entity\BaseBlogCategory", inversedBy="contents")
  41. * @ORM\JoinColumn(name="category_id", referencedColumnName="id", onDelete="CASCADE")
  42. */
  43. public $category;
  44. /**
  45. * @ORM\Column(name="title", type="string", length=255, nullable=true)
  46. * @GenericAnnotation(translation=true)
  47. */
  48. public $title;
  49. /**
  50. * @ORM\Column(name="browser_title", type="string", length=255, nullable=true)
  51. * @GenericAnnotation(translation=true)
  52. */
  53. public $browserTitle;
  54. /**
  55. * @ORM\Column(name="meta_description", type="text", nullable=true)
  56. * @GenericAnnotation(translation=true)
  57. */
  58. public $metaDescription;
  59. /**
  60. * @ORM\Column(name="meta_keywords", type="text", nullable=true)
  61. * @GenericAnnotation(translation=true)
  62. */
  63. public $metaKeywords;
  64. /**
  65. * @ORM\Column(name="slug", type="string", length=255, nullable=true)
  66. * @GenericAnnotation(translation=true)
  67. */
  68. public $slug;
  69. /**
  70. * @ORM\Column(name="html_content_intro", type="text", nullable=true)
  71. * @GenericAnnotation(translation=true)
  72. */
  73. public $htmlContentIntro;
  74. /**
  75. * @ORM\Column(name="html_content", type="text", nullable=true)
  76. * @GenericAnnotation(translation=true)
  77. */
  78. public $htmlContent;
  79. }