|
@@ -27,6 +27,11 @@ class Person
|
|
* @ORM\Column(name="desc", type="string", length=128)
|
|
* @ORM\Column(name="desc", type="string", length=128)
|
|
*/
|
|
*/
|
|
public $description;
|
|
public $description;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * @ORM\Column(name="last_name", type="string", length=128, nullable=true)
|
|
|
|
+ */
|
|
|
|
+ public $lastName;
|
|
|
|
|
|
public function getId()
|
|
public function getId()
|
|
{
|
|
{
|
|
@@ -52,6 +57,16 @@ class Person
|
|
{
|
|
{
|
|
return $this->description;
|
|
return $this->description;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public function getLastName()
|
|
|
|
+ {
|
|
|
|
+ return $this->lastName;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function setLastName($name)
|
|
|
|
+ {
|
|
|
|
+ $this->lastName = $name;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -96,7 +111,7 @@ class Person
|
|
|
|
|
|
return new \Gedmo\Translator\TranslationProxy($this,
|
|
return new \Gedmo\Translator\TranslationProxy($this,
|
|
/* Locale */ $locale,
|
|
/* Locale */ $locale,
|
|
- /* List of translatable properties: */ array('name'),
|
|
|
|
|
|
+ /* List of translatable properties: */ array('name', 'lastName'),
|
|
/* Translation entity class: */ 'Translator\Fixture\PersonTranslation',
|
|
/* Translation entity class: */ 'Translator\Fixture\PersonTranslation',
|
|
/* Translations collection property: */ $this->translations
|
|
/* Translations collection property: */ $this->translations
|
|
);
|
|
);
|