Last active
August 29, 2015 14:21
-
-
Save adelarcubs/4a2dac4ec8415d28c764 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 User\Entity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| /** | |
| * @ORM\Entity | |
| */ | |
| class User { | |
| /** | |
| * @ORM\Id | |
| * @ORM\GeneratedValue(strategy="AUTO") | |
| * @ORM\Column(type="integer") | |
| */ | |
| private $id; | |
| /** | |
| * | |
| * @var string @ORM\Column(name="name", type="string", length=255, nullable=true) | |
| */ | |
| private $name; | |
| public function setName($name) { | |
| $this->name = $name; | |
| return $this; | |
| } | |
| public function getId() { | |
| return $this->id; | |
| } | |
| public function getName() { | |
| return $this->name; | |
| } | |
| public function setId($id) { | |
| $this->id = $id; | |
| return $this; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment