Created
April 27, 2016 17:43
-
-
Save daum/fc34674dc3f2dadfbd316841bbd47825 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* Example | |
* | |
* @ORM\Table() | |
* @ORM\Entity | |
*/ | |
class Example | |
{ | |
use \Knp\DoctrineBehaviors\Model\Translatable\Translatable; | |
/** | |
* @var integer | |
* | |
* @ORM\Column(name="id", type="integer") | |
* @ORM\Id | |
* @ORM\GeneratedValue(strategy="AUTO") | |
*/ | |
private $id; | |
/** | |
* Get id | |
* | |
* @return integer | |
*/ | |
public function getId() | |
{ | |
return $this->id; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Knp\DoctrineBehaviors\Model\Translatable\Translation; | |
/** | |
* @ORM\Entity | |
*/ | |
class ScreenTranslation | |
{ | |
use Translation; | |
/** | |
* @var string | |
* @ORM\Column(name="name", type="text",nullable=true) | |
*/ | |
private $name; | |
/** | |
* Set name | |
* | |
* @param string $name | |
* @return Screen | |
*/ | |
public function setName($name) | |
{ | |
$this->name = $name; | |
return $this; | |
} | |
/** | |
* Get name | |
* | |
* @return string | |
*/ | |
public function getName() | |
{ | |
return $this->name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment