Skip to content

Instantly share code, notes, and snippets.

@glynrob
Created November 16, 2013 14:19
Show Gist options
  • Save glynrob/7500678 to your computer and use it in GitHub Desktop.
Save glynrob/7500678 to your computer and use it in GitHub Desktop.
<?php
// src/Users/Bundle/ListBundle/Entity/Users.php
namespace Users\Bundle\ListBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="users")
*/
class Users
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(type="string", length=255)
*/
protected $name;
/**
* @ORM\Column(type="string", length=200)
*/
protected $email;
/**
* @ORM\Column(type="string", length=60)
*/
protected $phone;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment