for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Victoire\Bundle\I18nBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use JMS\Serializer\Annotation as Serializer;
use Knp\DoctrineBehaviors\Model\Translatable\Translation;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Victoire ViewTranslation.
*
* @ORM\Entity()
* @ORM\Table(name="vic_view_translations")
*/
class ViewTranslation
{
use Translation;
* @var string
* @Assert\NotBlank()
* @ORM\Column(name="name", type="string", length=255)
* @Serializer\Groups({"search"})
protected $name;
* @Gedmo\Slug(handlers={
* @Gedmo\SlugHandler(class="Victoire\Bundle\BusinessEntityBundle\Handler\TwigSlugHandler"
* )},fields={"name"}, updatable=false, unique=false)
* @ORM\Column(name="slug", type="string", length=255)
protected $slug;
* This property is computed by the method PageSubscriber::buildUrl
protected $url;
* Get name.
* @return string
public function getName()
return $this->name;
}
* Set name.
* @param string $name
* @return View
public function setName($name)
$this->name = $name;
return $this;
* Set slug.
* @param string $slug
public function setSlug($slug)
$this->slug = $slug;
* Get slug.
public function getSlug()
return $this->slug;
public function getUrl()
return $this->url;
* @param string $url
public function setUrl($url)
$this->url = $url;
* {@inheritdoc}
public static function getTranslatableEntityClass()
return '\\Victoire\\Bundle\\CoreBundle\\Entity\\View';