short : how to store new fos user (or registration form), before persisting, in session ?
long :
scenario:
- anonymous user fills order form
- form check -> order entity to session -> redirect to registration form
- anonymous user fills registration form
- form check -> user entity to session -> redirect to checkout
- checkout -> persist user and order
I can get and set the order :
// form is valid
$r->getSession()->set('order', $order)
// in checkout
$r->getSession()->get('order')
and then persist my order.
how to do the same with user ?
informations we found :
- a post about setting props protected : order has all private and it works.
- not much more !
what are we doing wrong ?
Thanks and have a nice day !
Aucun commentaire:
Enregistrer un commentaire