Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace BeerReview\UserBundle\Model;
- use Doctrine\ORM\Mapping as ORM,
- FOS\UserBundle\Entity\User as BaseUser;
- /**
- * BeerReview\UserBundle\Model\User
- *
- * @Table(name="rfink_beer.User")
- * @Entity(repositoryClass="BeerReview\UserBundle\Model\Repository\UserRespository")
- */
- class User extends BaseUser
- {
- /**
- * @var integer $UserId
- *
- * @Column(name="UserId", type="integer", precision=0, scale=0, nullable=false, unique=false)
- * @Id
- * @GeneratedValue(strategy="IDENTITY")
- */
- private $UserId;
- /**
- * @var string $Email
- *
- * @Column(name="Email", type="string", length=255, precision=0, scale=0, nullable=false, unique=true)
- */
- private $Email;
- /**
- * @var string $UserPassword
- *
- * @Column(name="UserPassword", type="string", length=32, precision=0, scale=0, nullable=false, unique=false)
- */
- private $UserPassword;
- /**
- * @var string $FirstName
- *
- * @Column(name="FirstName", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
- */
- private $FirstName;
- /**
- * @var string $LastName
- *
- * @Column(name="LastName", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
- */
- private $LastName;
- /**
- * @var string $Username
- *
- * @Column(name="Username", type="string", length=255, precision=0, scale=0, nullable=false, unique=true)
- */
- private $Username;
- /**
- * @var string $PostalCode
- *
- * @Column(name="PostalCode", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
- */
- private $PostalCode;
- /**
- * @var string $Gender
- *
- * @Column(name="Gender", type="string", length=1, precision=0, scale=0, nullable=false, unique=false)
- */
- private $Gender;
- /**
- * @var date $DateOfBirth
- *
- * @Column(name="DateOfBirth", type="date", precision=0, scale=0, nullable=false, unique=false)
- */
- private $DateOfBirth;
- /**
- * @var BeerReview\UserBundle\Model\Country
- *
- * @ManyToOne(targetEntity="BeerReview\UserBundle\Model\Country")
- * @JoinColumns({
- * @JoinColumn(name="CountryId", referencedColumnName="CountryId", nullable=true)
- * })
- */
- private $Country;
- /**
- * Get UserId
- *
- * @return integer
- */
- public function getUserId()
- {
- return $this->UserId;
- }
- /**
- * Set Email
- *
- * @param string $email
- */
- public function setEmail($email)
- {
- $this->Email = $email;
- }
- /**
- * Get Email
- *
- * @return string
- */
- public function getEmail()
- {
- return $this->Email;
- }
- /**
- * Set UserPassword
- *
- * @param string $userPassword
- */
- public function setUserPassword($userPassword)
- {
- $this->UserPassword = $userPassword;
- }
- /**
- * Get UserPassword
- *
- * @return string
- */
- public function getUserPassword()
- {
- return $this->UserPassword;
- }
- /**
- * Set FirstName
- *
- * @param string $firstName
- */
- public function setFirstName($firstName)
- {
- $this->FirstName = $firstName;
- }
- /**
- * Get FirstName
- *
- * @return string
- */
- public function getFirstName()
- {
- return $this->FirstName;
- }
- /**
- * Set LastName
- *
- * @param string $lastName
- */
- public function setLastName($lastName)
- {
- $this->LastName = $lastName;
- }
- /**
- * Get LastName
- *
- * @return string
- */
- public function getLastName()
- {
- return $this->LastName;
- }
- /**
- * Set Username
- *
- * @param string $username
- */
- public function setUsername($username)
- {
- $this->Username = $username;
- }
- /**
- * Get Username
- *
- * @return string
- */
- public function getUsername()
- {
- return $this->Username;
- }
- /**
- * Set PostalCode
- *
- * @param string $postalCode
- */
- public function setPostalCode($postalCode)
- {
- $this->PostalCode = $postalCode;
- }
- /**
- * Get PostalCode
- *
- * @return string
- */
- public function getPostalCode()
- {
- return $this->PostalCode;
- }
- /**
- * Set Gender
- *
- * @param string $gender
- */
- public function setGender($gender)
- {
- $this->Gender = $gender;
- }
- /**
- * Get Gender
- *
- * @return string
- */
- public function getGender()
- {
- return $this->Gender;
- }
- /**
- * Set DateOfBirth
- *
- * @param date $dateOfBirth
- */
- public function setDateOfBirth($dateOfBirth)
- {
- $this->DateOfBirth = $dateOfBirth;
- }
- /**
- * Get DateOfBirth
- *
- * @return date
- */
- public function getDateOfBirth()
- {
- return $this->DateOfBirth;
- }
- /**
- * Set Country
- *
- * @param BeerReview\UserBundle\Model\Country $country
- */
- public function setCountry(\BeerReview\UserBundle\Model\Country $country)
- {
- $this->Country = $country;
- }
- /**
- * Get Country
- *
- * @return BeerReview\UserBundle\Model\Country
- */
- public function getCountry()
- {
- return $this->Country;
- }
- }
Add Comment
Please, Sign In to add comment