Guest User

Untitled

a guest
Jan 22nd, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.67 KB | None | 0 0
  1. Application error
  2. Exception information:
  3.  
  4. Message: Class does not exist
  5. Stack trace:
  6.  
  7. #0 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Doctrine/ORM/Mapping/ClassMetadata.php(67): ReflectionClass->__construct('')
  8. #1 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Doctrine/ORM/Mapping/ClassMetadataFactory.php(350): DoctrineORMMappingClassMetadata->__construct(false)
  9. #2 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Doctrine/ORM/Mapping/ClassMetadataFactory.php(260): DoctrineORMMappingClassMetadataFactory->newClassMetadataInstance(false)
  10. #3 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Doctrine/ORM/Mapping/ClassMetadataFactory.php(169): DoctrineORMMappingClassMetadataFactory->loadMetadata(false)
  11. #4 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Doctrine/ORM/EntityManager.php(247): DoctrineORMMappingClassMetadataFactory->getMetadataFor(false)
  12. #5 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Doctrine/ORM/UnitOfWork.php(1222): DoctrineORMEntityManager->getClassMetadata(false)
  13. #6 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Doctrine/ORM/UnitOfWork.php(1678): DoctrineORMUnitOfWork->doPersist(1, Array)
  14. #7 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Doctrine/ORM/UnitOfWork.php(1252): DoctrineORMUnitOfWork->cascadePersist(Object(GDSEntityProfile), Array)
  15. #8 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Doctrine/ORM/UnitOfWork.php(1201): DoctrineORMUnitOfWork->doPersist(Object(GDSEntityProfile), Array)
  16. #9 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Doctrine/ORM/EntityManager.php(454): DoctrineORMUnitOfWork->persist(Object(GDSEntityProfile))
  17. #10 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/application/controllers/MemberinfoController.php(81): DoctrineORMEntityManager->persist(Object(GDSEntityProfile))
  18. #11 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Zend/Controller/Action.php(516): MemberinfoController->registerAction()
  19. #12 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('registerAction')
  20. #13 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
  21. #14 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
  22. #15 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
  23. #16 /Library/Server/Web/Data/Sites/euphoriagaming/public_html/public/index.php(25): Zend_Application->run()
  24. #17 {main}
  25.  
  26. if ($form->isValid($this->_request->getPost()))
  27. { // Valid input
  28. $username = $this->getRequest()->getParam('username');
  29. $email = $this->getRequest()->getParam('email');
  30. $emailconfirm = $this->getRequest()->getParam('emailconfirm');
  31. $password = $this->getRequest()->getParam('password');
  32. $passwordconfirm = $this->getRequest()->getParam('passwordconfirm');
  33.  
  34.  
  35. $pwdMD5 = md5($password);
  36. $emailValidateString = md5($username);
  37.  
  38. $em = $this->entityManager;
  39.  
  40. $account = new GDSEntityAccount;
  41.  
  42. $account->setUsername($username);
  43. $account->setEmailaddress($email);
  44. $account->setPassword($pwdMD5);
  45. $account->setValidationstring($emailValidateString);
  46. $account->setAccountvalidated(false);
  47.  
  48. $em->persist($account);
  49. $em->flush();
  50.  
  51. $accounts = $account = $em->getRepository('GDSEntityAccount')
  52. ->findOneBy(array('emailaddress' => $email));
  53.  
  54. // Set up initial profile db entry
  55. $accountProfile = new GDSEntityProfile;
  56. $accountProfile->setAccountId($accounts->getId());
  57.  
  58. $em->persist($accountProfile);
  59. $em->flush();
  60.  
  61. $accountProfileDbEntry = $em->getRepository('GDSEntityProfile')
  62. ->findOneBy(array('AccountId' => $accounts->getId()));
  63.  
  64. $ProfileId = $accountProfileDbEntry->getId();
  65.  
  66. // Update the Account table entry with the profile Id
  67. $account->setProfileId($ProfileId);
  68. $em->persist($account);
  69. $em->flush();
  70. }
  71.  
  72. namespace GDSEntity;
  73. /**
  74. * @Entity(repositoryClass="GDSEntityRepositoryAccountRepository")
  75. */
  76. class Account
  77. {
  78. public function setAccountvalidated($accountvalidated)
  79. {
  80. $this->accountvalidated = $accountvalidated;
  81. }
  82.  
  83. public function getAccountvalidated()
  84. {
  85. return $this->accountvalidated;
  86. }
  87.  
  88. public function setEmailaddress($emailaddress)
  89. {
  90. $this->emailaddress = $emailaddress;
  91. }
  92.  
  93. public function getEmailaddress()
  94. {
  95. return $this->emailaddress;
  96. }
  97.  
  98. public function setPassword($password)
  99. {
  100. $this->password = $password;
  101. }
  102.  
  103. public function getPassword()
  104. {
  105. return $this->password;
  106. }
  107.  
  108. public function setUsername($username)
  109. {
  110. $this->username = $username;
  111. }
  112.  
  113. public function getUsername()
  114. {
  115. return $this->username;
  116. }
  117.  
  118. public function setProfileId($profile_id)
  119. {
  120. $this->profile_id = $profile_id;
  121. }
  122.  
  123. public function getProfileId()
  124. {
  125. return $this->profile_id;
  126. }
  127.  
  128. public function setValidationstring($validationstring)
  129. {
  130. $this->validationstring = $validationstring;
  131. }
  132.  
  133. public function getValidationstring()
  134. {
  135. return $this->validationstring;
  136. }
  137.  
  138. /**
  139. * @return int
  140. */
  141. public function getId()
  142. {
  143. return $this->id;
  144. }
  145.  
  146. /**
  147. * @var integer $id
  148. * @Column(name="id", type="integer",nullable=false)
  149. * @Id
  150. * @GeneratedValue(strategy="IDENTITY")
  151. */
  152. private $id;
  153.  
  154. /**
  155. * @OneToOne(targetEntity="Profile", mappedBy="account", cascade={"persist"})
  156. */
  157.  
  158. private $profile_id;
  159.  
  160. /**
  161. * @Column(type="string", unique=true, length="25", nullable=false)
  162. */
  163. private $username;
  164.  
  165. /**
  166. * @Column(type="string", length="25", nullable=true)
  167. */
  168. private $password;
  169.  
  170. /**
  171. * @Column(type="string", unique=true, length="75", nullable=false)
  172. */
  173. private $emailaddress;
  174.  
  175. /**
  176. * @Column(type="boolean", nullable=false)
  177. */
  178. private $accountvalidated;
  179.  
  180. /**
  181. * @Column(type="string", length="125", nullable=true)
  182. */
  183. private $validationstring;
  184. }
  185.  
  186. namespace GDSEntity;
  187. /**
  188. * @Entity(repositoryClass="GDSEntityRepositoryProfileRepository")
  189. */
  190. class Profile
  191. {
  192. public function setAboutme($aboutme)
  193. {
  194. $this->aboutme = $aboutme;
  195. }
  196.  
  197. public function getAboutme()
  198. {
  199. return $this->aboutme;
  200. }
  201.  
  202. public function setAccountId($account_id)
  203. {
  204. $this->account_id = $account_id;
  205. }
  206.  
  207. public function getAccountId()
  208. {
  209. return $this->account_id;
  210. }
  211.  
  212. public function setContactnameBattlelog($contactname_battlelog)
  213. {
  214. $this->contactname_battlelog = $contactname_battlelog;
  215. }
  216.  
  217. public function getContactnameBattlelog()
  218. {
  219. return $this->contactname_battlelog;
  220. }
  221.  
  222. public function setContactnameGw2($contactname_gw2)
  223. {
  224. $this->contactname_gw2 = $contactname_gw2;
  225. }
  226.  
  227. public function getContactnameGw2()
  228. {
  229. return $this->contactname_gw2;
  230. }
  231.  
  232. public function setFirstname($firstname)
  233. {
  234. $this->firstname = $firstname;
  235. }
  236.  
  237. public function getFirstname()
  238. {
  239. return $this->firstname;
  240. }
  241.  
  242. /**
  243. * @var integer $id
  244. * @Column(name="id", type="integer",nullable=false)
  245. * @Id
  246. * @GeneratedValue(strategy="IDENTITY")
  247. */
  248. private $id;
  249.  
  250. /**
  251. * @return int
  252. */
  253. public function getId()
  254. {
  255. return $this->id;
  256. }
  257.  
  258. public function setImageprofile($imageprofile)
  259. {
  260. $this->imageprofile = $imageprofile;
  261. }
  262.  
  263. public function getImageprofile()
  264. {
  265. return $this->imageprofile;
  266. }
  267.  
  268. public function setLastname($lastname)
  269. {
  270. $this->lastname = $lastname;
  271. }
  272.  
  273. public function getLastname()
  274. {
  275. return $this->lastname;
  276. }
  277.  
  278. public function setTeamspeakname($teamspeakname)
  279. {
  280. $this->teamspeakname = $teamspeakname;
  281. }
  282.  
  283. public function getTeamspeakname()
  284. {
  285. return $this->teamspeakname;
  286. }
  287.  
  288. public function setWebsite($website)
  289. {
  290. $this->website = $website;
  291. }
  292.  
  293. public function getWebsite()
  294. {
  295. return $this->website;
  296. }
  297.  
  298. /**
  299. * @OneToOne(targetEntity="Account", inversedBy="profile", cascade={"persist"})
  300. * @JoinColumn(name="account_id", referencedColumnName="id")
  301. */
  302.  
  303. private $account_id;
  304.  
  305. /**
  306. * @Column(type="string", length="25", nullable=true)
  307. */
  308. private $firstname;
  309.  
  310. /**
  311. * @Column(type="string", length="25", nullable=true)
  312. */
  313. private $lastname;
  314.  
  315. /**
  316. * @Column(type="string", length="25", nullable=true)
  317. */
  318. private $imageprofile;
  319.  
  320. /**
  321. * @Column(type="string", length="50", nullable=true)
  322. */
  323. private $website;
  324.  
  325. /**
  326. * @Column(type="string", length="50", nullable=true)
  327. */
  328. private $teamspeakname;
  329.  
  330. /**
  331. * @Column(type="string", length="50", nullable=true)
  332. */
  333. private $contactname_gw2;
  334.  
  335. /**
  336. * @Column(type="string", length="50", nullable=true)
  337. */
  338. private $contactname_battlelog;
  339.  
  340. /**
  341. * @Column(type="text", length="500", nullable=true)
  342. */
  343. private $aboutme;
  344. }
Add Comment
Please, Sign In to add comment