Skip to content

Instantly share code, notes, and snippets.

@theodesp
Created December 7, 2019 15:51
Show Gist options
  • Save theodesp/902fd5f1e2b42b52ca679ceb9e9b7f3b to your computer and use it in GitHub Desktop.
Save theodesp/902fd5f1e2b42b52ca679ceb9e9b7f3b to your computer and use it in GitHub Desktop.
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Model as ORMBehaviors;
/**
* @ORM\Entity
*/
class ProductTranslation
{
use ORMBehaviors\Translatable\Translation;
/**
* @ORM\Column(type="string", length=255)
*/
protected $name;
/**
* @ORM\Column(type="string", length=255)
*/
protected $description;
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
* @return null
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
* @return null
*/
public function setDescription($description)
{
$this->description = $description;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment