58 lines
815 B
PHP
58 lines
815 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\Models\DDC1089;
|
|
|
|
/**
|
|
* @Entity(repositoryClass="DDC1089User2Repository")
|
|
* @Table(name="users2")
|
|
*/
|
|
class DDC1089User2
|
|
{
|
|
/**
|
|
* @Id
|
|
* @Column(type="integer")
|
|
* @GeneratedValue(strategy="AUTO")
|
|
*/
|
|
protected $id;
|
|
|
|
/**
|
|
* @Column(type="string", length=255)
|
|
*/
|
|
protected $name;
|
|
|
|
/**
|
|
* Get id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set name
|
|
*
|
|
* @param string $name
|
|
*
|
|
* @return DDC1089User
|
|
*/
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get name
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
}
|