Skip to content

Instantly share code, notes, and snippets.

Created July 2, 2012 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/3033876 to your computer and use it in GitHub Desktop.
Save anonymous/3033876 to your computer and use it in GitHub Desktop.
<?php
// src/Zm/UserBundle/Entity/User.php
namespace Zm\UserBundle\Entity;
use FOS\UserBundle\Entity\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="zm_user")
*/
class User extends BaseUser
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @var string $firstname
*
* @ORM\Column(name="firstname", type="string", length=255)
*/
public $firstname;
/**
* @var string $surname
*
* @ORM\Column(name="surname", type="string", length=255)
*/
public $surname;
/**
* @var string $phone
*
* @ORM\Column(name="phone", type="string", length=12, nullable=true)
*/
public $phone;
/**
* @var string $cell
*
* @ORM\Column(name="cell", type="string", length=12, nullable=true)
*/
public $cell;
/**
* @var string $avatar
*
* @ORM\Column(name="avatar", type="string", length=255, nullable=true)
*/
public $avatar;
/**
* @var string $job
*
* @ORM\Column(name="job", type="string", length=255, nullable=true)
*/
public $job;
/**
* @var string $website
*
* @ORM\Column(name="website", type="string", length=255, nullable=true)
*/
public $website;
/**
* @var string $location
*
* @ORM\Column(name="location", type="string", length=255, nullable=true)
*/
public $location;
/**
* @var string $facebook
*
* @ORM\Column(name="facebook", type="string", length=255, nullable=true)
*/
public $facebook;
/**
* @var string $twitter
*
* @ORM\Column(name="twitter", type="string", length=255, nullable=true)
*/
public $twitter;
/**
* @var string $language
*
* @ORM\Column(name="language", type="string", length=5, nullable=true)
*/
public $language;
// Getters / Setters
public function getFirstname()
{
return $this->$firstname;
}
public function setFirstname($firstname)
{
$this->firstname = $firstname;
}
public function getSurname()
{
return $this->$surname;
}
public function setSurname($surname)
{
$this->surname = $surname;
}
public function getPhone()
{
return $this->$phone;
}
public function setPhone($phone)
{
$this->phone = $phone;
}
public function getCell()
{
return $this->$cell;
}
public function setCell($cell)
{
$this->cell = $cell;
}
public function getAvatar()
{
return $this->$avatar;
}
public function setAvatar($avatar)
{
$this->avatar = $avatar;
}
public function getJob()
{
return $this->$job;
}
public function setJob($job)
{
$this->job = $job;
}
public function getWebsite()
{
return $this->$website;
}
public function setWebsite($website)
{
$this->website = $website;
}
public function getLocation()
{
return $this->$location;
}
public function setLocation($location)
{
$this->location = $location;
}
public function getTwitter()
{
return $this->$twitter;
}
public function setTwitter($twitter)
{
$this->twitter = $twitter;
}
public function getFacebook()
{
return $this->$facebook;
}
public function setFacebook($facebook)
{
$this->facebook = $facebook;
}
public function getLanguage()
{
return $this->$language;
}
public function setLanguage($language)
{
$this->language = $language;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment