Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. $session = new Session();
  2. $serialized_user = serialize($user);
  3. $session->set('myuser', ($serialized_user));
  4.  
  5. $test = ($this->get('session')->get('myuser'));
  6. $test_unserialized = unserialize($test);
  7.  
  8. $em = $this->getDoctrine()->getManager();
  9. $em->persist($test_unserialized);
  10. $em->flush();
  11. return $this->render('UserBundle:Account:buyedOk.php');
  12.  
  13. An exception occurred while executing 'INSERT INTO user (user, passw, email, is_active, is_locked, date_expire, date_registration, last_visit, name, surname, address, zipcode, city, province, country, vat, tel, fax, contact_name, contact_role, contact_email, contact_tel, email_hex, email_confirmed, validated,id_currency) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["March", "$2y$13$hTBP0ANwRlwgcfX19OtsTubn6ctI64lz5GVQ3JF3nZtD0GDPK8rTC", null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]:
  14.  
  15. SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'email' cannot be null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement