Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function loginsuccessAction()
- {
- $em = $this->getDoctrine()->getEntityManager();
- $user = $em->getRepository('MDPILoginBundle:Users')->find(1);
- var_dump($user);
- }
- <?php
- namespace MDPILoginBundleEntity;
- use DoctrineORMMapping as ORM;
- /**
- * MDPILoginBundleEntityUsers
- *
- * @ORMTable(name="users")
- * @ORMEntity
- */
- class Users
- {
- /**
- * @var integer $id
- *
- * @ORMColumn(name="id", type="integer", nullable=false)
- * @ORMId
- * @ORMGeneratedValue(strategy="IDENTITY")
- */
- private $id;
- /**
- * @var integer $editorId
- *
- * @ORMColumn(name="editor_id", type="integer", nullable=true)
- */
- private $editorId;
- /**
- * @var string $email
- *
- * @ORMColumn(name="email", type="string", length=255, nullable=false)
- */
- private $email;
- /**
- * @var string $password
- *
- * @ORMColumn(name="password", type="string", length=255, nullable=false)
- */
- private $password;
- /**
- * @var integer $titleId
- *
- * @ORMColumn(name="title_id", type="integer", nullable=true)
- */
- private $titleId;
- /**
- * @var string $firstname
- *
- * @ORMColumn(name="firstname", type="string", length=255, nullable=true)
- */
- private $firstname;
- /**
- * @var string $lastname
- *
- * @ORMColumn(name="lastname", type="string", length=255, nullable=true)
- */
- private $lastname;
- /**
- * @var string $department
- *
- * @ORMColumn(name="department", type="string", length=255, nullable=true)
- */
- private $department;
- /**
- * @var string $organization
- *
- * @ORMColumn(name="organization", type="string", length=255, nullable=true)
- */
- private $organization;
- /**
- * @var string $address1
- *
- * @ORMColumn(name="address1", type="string", length=255, nullable=true)
- */
- private $address1;
- /**
- * @var string $address2
- *
- * @ORMColumn(name="address2", type="string", length=255, nullable=true)
- */
- private $address2;
- /**
- * @var string $city
- *
- * @ORMColumn(name="city", type="string", length=50, nullable=true)
- */
- private $city;
- /**
- * @var string $state
- *
- * @ORMColumn(name="state", type="string", length=50, nullable=true)
- */
- private $state;
- /**
- * @var string $zipcode
- *
- * @ORMColumn(name="zipcode", type="string", length=50, nullable=true)
- */
- private $zipcode;
- /**
- * @var integer $countryId
- *
- * @ORMColumn(name="country_id", type="integer", nullable=true)
- */
- private $countryId;
- /**
- * @var string $telephone
- *
- * @ORMColumn(name="telephone", type="string", length=25, nullable=true)
- */
- private $telephone;
- /**
- * @var string $fax
- *
- * @ORMColumn(name="fax", type="string", length=25, nullable=true)
- */
- private $fax;
- /**
- * @var integer $workplaceId
- *
- * @ORMColumn(name="workplace_id", type="integer", nullable=true)
- */
- private $workplaceId;
- /**
- * @var integer $jobtypeId
- *
- * @ORMColumn(name="jobtype_id", type="integer", nullable=true)
- */
- private $jobtypeId;
- /**
- * @var string $researchKeywords
- *
- * @ORMColumn(name="research_keywords", type="string", length=255, nullable=true)
- */
- private $researchKeywords;
- /**
- * @var string $ip
- *
- * @ORMColumn(name="ip", type="string", length=15, nullable=true)
- */
- private $ip;
- /**
- * @var boolean $status
- *
- * @ORMColumn(name="status", type="boolean", nullable=false)
- */
- private $status;
- /**
- * @var boolean $active
- *
- * @ORMColumn(name="active", type="boolean", nullable=false)
- */
- private $active;
- /**
- * @var bigint $dateRegistered
- *
- * @ORMColumn(name="date_registered", type="bigint", nullable=false)
- */
- private $dateRegistered;
- /**
- * @var string $alertFrequency
- *
- * @ORMColumn(name="alert_frequency", type="string", length=10, nullable=true)
- */
- private $alertFrequency;
- /**
- * @var datetime $alertLastSuccess
- *
- * @ORMColumn(name="alert_last_success", type="datetime", nullable=false)
- */
- private $alertLastSuccess;
- /**
- * @var text $signature
- *
- * @ORMColumn(name="signature", type="text", nullable=true)
- */
- private $signature;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set editorId
- *
- * @param integer $editorId
- */
- public function setEditorId($editorId)
- {
- $this->editorId = $editorId;
- }
- /**
- * Get editorId
- *
- * @return integer
- */
- public function getEditorId()
- {
- return $this->editorId;
- }
- /**
- * Set email
- *
- * @param string $email
- */
- public function setEmail($email)
- {
- $this->email = $email;
- }
- /**
- * Get email
- *
- * @return string
- */
- public function getEmail()
- {
- return $this->email;
- }
- /**
- * Set password
- *
- * @param string $password
- */
- public function setPassword($password)
- {
- $this->password = $password;
- }
- /**
- * Get password
- *
- * @return string
- */
- public function getPassword()
- {
- return $this->password;
- }
- /**
- * Set titleId
- *
- * @param integer $titleId
- */
- public function setTitleId($titleId)
- {
- $this->titleId = $titleId;
- }
- /**
- * Get titleId
- *
- * @return integer
- */
- public function getTitleId()
- {
- return $this->titleId;
- }
- /**
- * 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 department
- *
- * @param string $department
- */
- public function setDepartment($department)
- {
- $this->department = $department;
- }
- /**
- * Get department
- *
- * @return string
- */
- public function getDepartment()
- {
- return $this->department;
- }
- /**
- * Set organization
- *
- * @param string $organization
- */
- public function setOrganization($organization)
- {
- $this->organization = $organization;
- }
- /**
- * Get organization
- *
- * @return string
- */
- public function getOrganization()
- {
- return $this->organization;
- }
- /**
- * Set address1
- *
- * @param string $address1
- */
- public function setAddress1($address1)
- {
- $this->address1 = $address1;
- }
- /**
- * Get address1
- *
- * @return string
- */
- public function getAddress1()
- {
- return $this->address1;
- }
- /**
- * Set address2
- *
- * @param string $address2
- */
- public function setAddress2($address2)
- {
- $this->address2 = $address2;
- }
- /**
- * Get address2
- *
- * @return string
- */
- public function getAddress2()
- {
- return $this->address2;
- }
- /**
- * Set city
- *
- * @param string $city
- */
- public function setCity($city)
- {
- $this->city = $city;
- }
- /**
- * Get city
- *
- * @return string
- */
- public function getCity()
- {
- return $this->city;
- }
- /**
- * Set state
- *
- * @param string $state
- */
- public function setState($state)
- {
- $this->state = $state;
- }
- /**
- * Get state
- *
- * @return string
- */
- public function getState()
- {
- return $this->state;
- }
- /**
- * Set zipcode
- *
- * @param string $zipcode
- */
- public function setZipcode($zipcode)
- {
- $this->zipcode = $zipcode;
- }
- /**
- * Get zipcode
- *
- * @return string
- */
- public function getZipcode()
- {
- return $this->zipcode;
- }
- /**
- * Set countryId
- *
- * @param integer $countryId
- */
- public function setCountryId($countryId)
- {
- $this->countryId = $countryId;
- }
- /**
- * Get countryId
- *
- * @return integer
- */
- public function getCountryId()
- {
- return $this->countryId;
- }
- /**
- * Set telephone
- *
- * @param string $telephone
- */
- public function setTelephone($telephone)
- {
- $this->telephone = $telephone;
- }
- /**
- * Get telephone
- *
- * @return string
- */
- public function getTelephone()
- {
- return $this->telephone;
- }
- /**
- * Set fax
- *
- * @param string $fax
- */
- public function setFax($fax)
- {
- $this->fax = $fax;
- }
- /**
- * Get fax
- *
- * @return string
- */
- public function getFax()
- {
- return $this->fax;
- }
- /**
- * Set workplaceId
- *
- * @param integer $workplaceId
- */
- public function setWorkplaceId($workplaceId)
- {
- $this->workplaceId = $workplaceId;
- }
- /**
- * Get workplaceId
- *
- * @return integer
- */
- public function getWorkplaceId()
- {
- return $this->workplaceId;
- }
- /**
- * Set jobtypeId
- *
- * @param integer $jobtypeId
- */
- public function setJobtypeId($jobtypeId)
- {
- $this->jobtypeId = $jobtypeId;
- }
- /**
- * Get jobtypeId
- *
- * @return integer
- */
- public function getJobtypeId()
- {
- return $this->jobtypeId;
- }
- /**
- * Set researchKeywords
- *
- * @param string $researchKeywords
- */
- public function setResearchKeywords($researchKeywords)
- {
- $this->researchKeywords = $researchKeywords;
- }
- /**
- * Get researchKeywords
- *
- * @return string
- */
- public function getResearchKeywords()
- {
- return $this->researchKeywords;
- }
- /**
- * Set ip
- *
- * @param string $ip
- */
- public function setIp($ip)
- {
- $this->ip = $ip;
- }
- /**
- * Get ip
- *
- * @return string
- */
- public function getIp()
- {
- return $this->ip;
- }
- /**
- * Set status
- *
- * @param boolean $status
- */
- public function setStatus($status)
- {
- $this->status = $status;
- }
- /**
- * Get status
- *
- * @return boolean
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * Set active
- *
- * @param boolean $active
- */
- public function setActive($active)
- {
- $this->active = $active;
- }
- /**
- * Get active
- *
- * @return boolean
- */
- public function getActive()
- {
- return $this->active;
- }
- /**
- * Set dateRegistered
- *
- * @param bigint $dateRegistered
- */
- public function setDateRegistered($dateRegistered)
- {
- $this->dateRegistered = $dateRegistered;
- }
- /**
- * Get dateRegistered
- *
- * @return bigint
- */
- public function getDateRegistered()
- {
- return $this->dateRegistered;
- }
- /**
- * Set alertFrequency
- *
- * @param string $alertFrequency
- */
- public function setAlertFrequency($alertFrequency)
- {
- $this->alertFrequency = $alertFrequency;
- }
- /**
- * Get alertFrequency
- *
- * @return string
- */
- public function getAlertFrequency()
- {
- return $this->alertFrequency;
- }
- /**
- * Set alertLastSuccess
- *
- * @param datetime $alertLastSuccess
- */
- public function setAlertLastSuccess($alertLastSuccess)
- {
- $this->alertLastSuccess = $alertLastSuccess;
- }
- /**
- * Get alertLastSuccess
- *
- * @return datetime
- */
- public function getAlertLastSuccess()
- {
- return $this->alertLastSuccess;
- }
- /**
- * Set signature
- *
- * @param text $signature
- */
- public function setSignature($signature)
- {
- $this->signature = $signature;
- }
- /**
- * Get signature
- *
- * @return text
- */
- public function getSignature()
- {
- return $this->signature;
- }
Add Comment
Please, Sign In to add comment