<?php
/**
* Base Product
*
* @author Vincent van Waasbergen <v.vanwaasbergen@visualmedia.nl>
*/
namespace VisualMedia\ProductBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use VisualMedia\LisaBundle\Annotation\GenericAnnotation;
use VisualMedia\LisaBundle\Component\Interfaces\EntityInterface;
use VisualMedia\LisaBundle\Traits\AutoIdTrait;
use VisualMedia\LisaBundle\Traits\BlameableTrait;
use VisualMedia\LisaBundle\Traits\TimestampableTrait;
use VisualMedia\ProductBundle\Model\BaseProductCategoryContentModel;
/**
* Base Product Category Content
*
* @ORM\Entity(repositoryClass="VisualMedia\ProductBundle\Manager\BaseProductCategoryContentManager")
* @ORM\Table(name="product_category_content")
*
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="discriminator", type="string")
*/
class BaseProductCategoryContent extends BaseProductCategoryContentModel implements EntityInterface
{
use AutoIdTrait;
use BlameableTrait;
use TimestampableTrait;
/**
* @ORM\Column(name="title", type="string", length=255, nullable=true)
* @GenericAnnotation(translation=true)
*/
public $title;
/**
* @ORM\Column(name="browser_title", type="string", length=255, nullable=true)
* @GenericAnnotation(translation=true)
*/
public $browserTitle;
/**
* @ORM\Column(name="meta_description", type="text", nullable=true)
* @GenericAnnotation(translation=true)
*/
public $metaDescription;
/**
* @ORM\Column(name="meta_keywords", type="text", nullable=true)
* @GenericAnnotation(translation=true)
*/
public $metaKeywords;
/**
* @ORM\Column(name="slug", type="string", length=255, nullable=true)
* @GenericAnnotation(translation=true)
*/
public $slug;
/**
* @ORM\Column(name="html_content", type="text", nullable=true)
* @GenericAnnotation(translation=true)
*/
public $htmlContent;
/**
* @ORM\ManyToOne(targetEntity="VisualMedia\ProductBundle\Entity\BaseProductCategory", inversedBy="contents")
* @ORM\JoinColumn(name="category_id", referencedColumnName="id", onDelete="CASCADE")
*/
public $category;
/**
* @ORM\ManyToOne(targetEntity="VisualMedia\TranslationBundle\Entity\BaseLocale")
* @ORM\JoinColumn(name="locale_id", referencedColumnName="id", onDelete="CASCADE")
*/
public $locale;
/**
* @ORM\ManyToOne(targetEntity="VisualMedia\TranslationBundle\Entity\BaseChannel")
* @ORM\JoinColumn(name="channel_id", referencedColumnName="id", onDelete="CASCADE")
*/
public $channel;
}