Skip to content

Instantly share code, notes, and snippets.

@adelarcubs
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save adelarcubs/4a2dac4ec8415d28c764 to your computer and use it in GitHub Desktop.

Select an option

Save adelarcubs/4a2dac4ec8415d28c764 to your computer and use it in GitHub Desktop.
<?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