Guest User

Untitled

a guest
Feb 8th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.04 KB | None | 0 0
  1. public function loginsuccessAction()
  2. {
  3.  
  4. $em = $this->getDoctrine()->getEntityManager();
  5. $user = $em->getRepository('MDPILoginBundle:Users')->find(1);
  6.  
  7. var_dump($user);
  8. }
  9.  
  10. <?php
  11.  
  12. namespace MDPILoginBundleEntity;
  13.  
  14. use DoctrineORMMapping as ORM;
  15.  
  16. /**
  17. * MDPILoginBundleEntityUsers
  18. *
  19. * @ORMTable(name="users")
  20. * @ORMEntity
  21. */
  22. class Users
  23. {
  24. /**
  25. * @var integer $id
  26. *
  27. * @ORMColumn(name="id", type="integer", nullable=false)
  28. * @ORMId
  29. * @ORMGeneratedValue(strategy="IDENTITY")
  30. */
  31. private $id;
  32.  
  33. /**
  34. * @var integer $editorId
  35. *
  36. * @ORMColumn(name="editor_id", type="integer", nullable=true)
  37. */
  38. private $editorId;
  39.  
  40. /**
  41. * @var string $email
  42. *
  43. * @ORMColumn(name="email", type="string", length=255, nullable=false)
  44. */
  45. private $email;
  46.  
  47. /**
  48. * @var string $password
  49. *
  50. * @ORMColumn(name="password", type="string", length=255, nullable=false)
  51. */
  52. private $password;
  53.  
  54. /**
  55. * @var integer $titleId
  56. *
  57. * @ORMColumn(name="title_id", type="integer", nullable=true)
  58. */
  59. private $titleId;
  60.  
  61. /**
  62. * @var string $firstname
  63. *
  64. * @ORMColumn(name="firstname", type="string", length=255, nullable=true)
  65. */
  66. private $firstname;
  67.  
  68. /**
  69. * @var string $lastname
  70. *
  71. * @ORMColumn(name="lastname", type="string", length=255, nullable=true)
  72. */
  73. private $lastname;
  74.  
  75. /**
  76. * @var string $department
  77. *
  78. * @ORMColumn(name="department", type="string", length=255, nullable=true)
  79. */
  80. private $department;
  81.  
  82. /**
  83. * @var string $organization
  84. *
  85. * @ORMColumn(name="organization", type="string", length=255, nullable=true)
  86. */
  87. private $organization;
  88.  
  89. /**
  90. * @var string $address1
  91. *
  92. * @ORMColumn(name="address1", type="string", length=255, nullable=true)
  93. */
  94. private $address1;
  95.  
  96. /**
  97. * @var string $address2
  98. *
  99. * @ORMColumn(name="address2", type="string", length=255, nullable=true)
  100. */
  101. private $address2;
  102.  
  103. /**
  104. * @var string $city
  105. *
  106. * @ORMColumn(name="city", type="string", length=50, nullable=true)
  107. */
  108. private $city;
  109.  
  110. /**
  111. * @var string $state
  112. *
  113. * @ORMColumn(name="state", type="string", length=50, nullable=true)
  114. */
  115. private $state;
  116.  
  117. /**
  118. * @var string $zipcode
  119. *
  120. * @ORMColumn(name="zipcode", type="string", length=50, nullable=true)
  121. */
  122. private $zipcode;
  123.  
  124. /**
  125. * @var integer $countryId
  126. *
  127. * @ORMColumn(name="country_id", type="integer", nullable=true)
  128. */
  129. private $countryId;
  130.  
  131. /**
  132. * @var string $telephone
  133. *
  134. * @ORMColumn(name="telephone", type="string", length=25, nullable=true)
  135. */
  136. private $telephone;
  137.  
  138. /**
  139. * @var string $fax
  140. *
  141. * @ORMColumn(name="fax", type="string", length=25, nullable=true)
  142. */
  143. private $fax;
  144.  
  145. /**
  146. * @var integer $workplaceId
  147. *
  148. * @ORMColumn(name="workplace_id", type="integer", nullable=true)
  149. */
  150. private $workplaceId;
  151.  
  152. /**
  153. * @var integer $jobtypeId
  154. *
  155. * @ORMColumn(name="jobtype_id", type="integer", nullable=true)
  156. */
  157. private $jobtypeId;
  158.  
  159. /**
  160. * @var string $researchKeywords
  161. *
  162. * @ORMColumn(name="research_keywords", type="string", length=255, nullable=true)
  163. */
  164. private $researchKeywords;
  165.  
  166. /**
  167. * @var string $ip
  168. *
  169. * @ORMColumn(name="ip", type="string", length=15, nullable=true)
  170. */
  171. private $ip;
  172.  
  173. /**
  174. * @var boolean $status
  175. *
  176. * @ORMColumn(name="status", type="boolean", nullable=false)
  177. */
  178. private $status;
  179.  
  180. /**
  181. * @var boolean $active
  182. *
  183. * @ORMColumn(name="active", type="boolean", nullable=false)
  184. */
  185. private $active;
  186.  
  187. /**
  188. * @var bigint $dateRegistered
  189. *
  190. * @ORMColumn(name="date_registered", type="bigint", nullable=false)
  191. */
  192. private $dateRegistered;
  193.  
  194. /**
  195. * @var string $alertFrequency
  196. *
  197. * @ORMColumn(name="alert_frequency", type="string", length=10, nullable=true)
  198. */
  199. private $alertFrequency;
  200.  
  201. /**
  202. * @var datetime $alertLastSuccess
  203. *
  204. * @ORMColumn(name="alert_last_success", type="datetime", nullable=false)
  205. */
  206. private $alertLastSuccess;
  207.  
  208. /**
  209. * @var text $signature
  210. *
  211. * @ORMColumn(name="signature", type="text", nullable=true)
  212. */
  213. private $signature;
  214.  
  215.  
  216.  
  217. /**
  218. * Get id
  219. *
  220. * @return integer
  221. */
  222. public function getId()
  223. {
  224. return $this->id;
  225. }
  226.  
  227. /**
  228. * Set editorId
  229. *
  230. * @param integer $editorId
  231. */
  232. public function setEditorId($editorId)
  233. {
  234. $this->editorId = $editorId;
  235. }
  236.  
  237. /**
  238. * Get editorId
  239. *
  240. * @return integer
  241. */
  242. public function getEditorId()
  243. {
  244. return $this->editorId;
  245. }
  246.  
  247. /**
  248. * Set email
  249. *
  250. * @param string $email
  251. */
  252. public function setEmail($email)
  253. {
  254. $this->email = $email;
  255. }
  256.  
  257. /**
  258. * Get email
  259. *
  260. * @return string
  261. */
  262. public function getEmail()
  263. {
  264. return $this->email;
  265. }
  266.  
  267. /**
  268. * Set password
  269. *
  270. * @param string $password
  271. */
  272. public function setPassword($password)
  273. {
  274. $this->password = $password;
  275. }
  276.  
  277. /**
  278. * Get password
  279. *
  280. * @return string
  281. */
  282. public function getPassword()
  283. {
  284. return $this->password;
  285. }
  286.  
  287. /**
  288. * Set titleId
  289. *
  290. * @param integer $titleId
  291. */
  292. public function setTitleId($titleId)
  293. {
  294. $this->titleId = $titleId;
  295. }
  296.  
  297. /**
  298. * Get titleId
  299. *
  300. * @return integer
  301. */
  302. public function getTitleId()
  303. {
  304. return $this->titleId;
  305. }
  306.  
  307. /**
  308. * Set firstname
  309. *
  310. * @param string $firstname
  311. */
  312. public function setFirstname($firstname)
  313. {
  314. $this->firstname = $firstname;
  315. }
  316.  
  317. /**
  318. * Get firstname
  319. *
  320. * @return string
  321. */
  322. public function getFirstname()
  323. {
  324. return $this->firstname;
  325. }
  326.  
  327. /**
  328. * Set lastname
  329. *
  330. * @param string $lastname
  331. */
  332. public function setLastname($lastname)
  333. {
  334. $this->lastname = $lastname;
  335. }
  336.  
  337. /**
  338. * Get lastname
  339. *
  340. * @return string
  341. */
  342. public function getLastname()
  343. {
  344. return $this->lastname;
  345. }
  346.  
  347. /**
  348. * Set department
  349. *
  350. * @param string $department
  351. */
  352. public function setDepartment($department)
  353. {
  354. $this->department = $department;
  355. }
  356.  
  357. /**
  358. * Get department
  359. *
  360. * @return string
  361. */
  362. public function getDepartment()
  363. {
  364. return $this->department;
  365. }
  366.  
  367. /**
  368. * Set organization
  369. *
  370. * @param string $organization
  371. */
  372. public function setOrganization($organization)
  373. {
  374. $this->organization = $organization;
  375. }
  376.  
  377. /**
  378. * Get organization
  379. *
  380. * @return string
  381. */
  382. public function getOrganization()
  383. {
  384. return $this->organization;
  385. }
  386.  
  387. /**
  388. * Set address1
  389. *
  390. * @param string $address1
  391. */
  392. public function setAddress1($address1)
  393. {
  394. $this->address1 = $address1;
  395. }
  396.  
  397. /**
  398. * Get address1
  399. *
  400. * @return string
  401. */
  402. public function getAddress1()
  403. {
  404. return $this->address1;
  405. }
  406.  
  407. /**
  408. * Set address2
  409. *
  410. * @param string $address2
  411. */
  412. public function setAddress2($address2)
  413. {
  414. $this->address2 = $address2;
  415. }
  416.  
  417. /**
  418. * Get address2
  419. *
  420. * @return string
  421. */
  422. public function getAddress2()
  423. {
  424. return $this->address2;
  425. }
  426.  
  427. /**
  428. * Set city
  429. *
  430. * @param string $city
  431. */
  432. public function setCity($city)
  433. {
  434. $this->city = $city;
  435. }
  436.  
  437. /**
  438. * Get city
  439. *
  440. * @return string
  441. */
  442. public function getCity()
  443. {
  444. return $this->city;
  445. }
  446.  
  447. /**
  448. * Set state
  449. *
  450. * @param string $state
  451. */
  452. public function setState($state)
  453. {
  454. $this->state = $state;
  455. }
  456.  
  457. /**
  458. * Get state
  459. *
  460. * @return string
  461. */
  462. public function getState()
  463. {
  464. return $this->state;
  465. }
  466.  
  467. /**
  468. * Set zipcode
  469. *
  470. * @param string $zipcode
  471. */
  472. public function setZipcode($zipcode)
  473. {
  474. $this->zipcode = $zipcode;
  475. }
  476.  
  477. /**
  478. * Get zipcode
  479. *
  480. * @return string
  481. */
  482. public function getZipcode()
  483. {
  484. return $this->zipcode;
  485. }
  486.  
  487. /**
  488. * Set countryId
  489. *
  490. * @param integer $countryId
  491. */
  492. public function setCountryId($countryId)
  493. {
  494. $this->countryId = $countryId;
  495. }
  496.  
  497. /**
  498. * Get countryId
  499. *
  500. * @return integer
  501. */
  502. public function getCountryId()
  503. {
  504. return $this->countryId;
  505. }
  506.  
  507. /**
  508. * Set telephone
  509. *
  510. * @param string $telephone
  511. */
  512. public function setTelephone($telephone)
  513. {
  514. $this->telephone = $telephone;
  515. }
  516.  
  517. /**
  518. * Get telephone
  519. *
  520. * @return string
  521. */
  522. public function getTelephone()
  523. {
  524. return $this->telephone;
  525. }
  526.  
  527. /**
  528. * Set fax
  529. *
  530. * @param string $fax
  531. */
  532. public function setFax($fax)
  533. {
  534. $this->fax = $fax;
  535. }
  536.  
  537. /**
  538. * Get fax
  539. *
  540. * @return string
  541. */
  542. public function getFax()
  543. {
  544. return $this->fax;
  545. }
  546.  
  547. /**
  548. * Set workplaceId
  549. *
  550. * @param integer $workplaceId
  551. */
  552. public function setWorkplaceId($workplaceId)
  553. {
  554. $this->workplaceId = $workplaceId;
  555. }
  556.  
  557. /**
  558. * Get workplaceId
  559. *
  560. * @return integer
  561. */
  562. public function getWorkplaceId()
  563. {
  564. return $this->workplaceId;
  565. }
  566.  
  567. /**
  568. * Set jobtypeId
  569. *
  570. * @param integer $jobtypeId
  571. */
  572. public function setJobtypeId($jobtypeId)
  573. {
  574. $this->jobtypeId = $jobtypeId;
  575. }
  576.  
  577. /**
  578. * Get jobtypeId
  579. *
  580. * @return integer
  581. */
  582. public function getJobtypeId()
  583. {
  584. return $this->jobtypeId;
  585. }
  586.  
  587. /**
  588. * Set researchKeywords
  589. *
  590. * @param string $researchKeywords
  591. */
  592. public function setResearchKeywords($researchKeywords)
  593. {
  594. $this->researchKeywords = $researchKeywords;
  595. }
  596.  
  597. /**
  598. * Get researchKeywords
  599. *
  600. * @return string
  601. */
  602. public function getResearchKeywords()
  603. {
  604. return $this->researchKeywords;
  605. }
  606.  
  607. /**
  608. * Set ip
  609. *
  610. * @param string $ip
  611. */
  612. public function setIp($ip)
  613. {
  614. $this->ip = $ip;
  615. }
  616.  
  617. /**
  618. * Get ip
  619. *
  620. * @return string
  621. */
  622. public function getIp()
  623. {
  624. return $this->ip;
  625. }
  626.  
  627. /**
  628. * Set status
  629. *
  630. * @param boolean $status
  631. */
  632. public function setStatus($status)
  633. {
  634. $this->status = $status;
  635. }
  636.  
  637. /**
  638. * Get status
  639. *
  640. * @return boolean
  641. */
  642. public function getStatus()
  643. {
  644. return $this->status;
  645. }
  646.  
  647. /**
  648. * Set active
  649. *
  650. * @param boolean $active
  651. */
  652. public function setActive($active)
  653. {
  654. $this->active = $active;
  655. }
  656.  
  657. /**
  658. * Get active
  659. *
  660. * @return boolean
  661. */
  662. public function getActive()
  663. {
  664. return $this->active;
  665. }
  666.  
  667. /**
  668. * Set dateRegistered
  669. *
  670. * @param bigint $dateRegistered
  671. */
  672. public function setDateRegistered($dateRegistered)
  673. {
  674. $this->dateRegistered = $dateRegistered;
  675. }
  676.  
  677. /**
  678. * Get dateRegistered
  679. *
  680. * @return bigint
  681. */
  682. public function getDateRegistered()
  683. {
  684. return $this->dateRegistered;
  685. }
  686.  
  687. /**
  688. * Set alertFrequency
  689. *
  690. * @param string $alertFrequency
  691. */
  692. public function setAlertFrequency($alertFrequency)
  693. {
  694. $this->alertFrequency = $alertFrequency;
  695. }
  696.  
  697. /**
  698. * Get alertFrequency
  699. *
  700. * @return string
  701. */
  702. public function getAlertFrequency()
  703. {
  704. return $this->alertFrequency;
  705. }
  706.  
  707. /**
  708. * Set alertLastSuccess
  709. *
  710. * @param datetime $alertLastSuccess
  711. */
  712. public function setAlertLastSuccess($alertLastSuccess)
  713. {
  714. $this->alertLastSuccess = $alertLastSuccess;
  715. }
  716.  
  717. /**
  718. * Get alertLastSuccess
  719. *
  720. * @return datetime
  721. */
  722. public function getAlertLastSuccess()
  723. {
  724. return $this->alertLastSuccess;
  725. }
  726.  
  727. /**
  728. * Set signature
  729. *
  730. * @param text $signature
  731. */
  732. public function setSignature($signature)
  733. {
  734. $this->signature = $signature;
  735. }
  736.  
  737. /**
  738. * Get signature
  739. *
  740. * @return text
  741. */
  742. public function getSignature()
  743. {
  744. return $this->signature;
  745. }
Add Comment
Please, Sign In to add comment