i need to store object in session because i dont like to save them in
database in the first action
i'm doing a inscription form in 4 steps so i have to save the 3 object
of the 3 first steps and when the user confirm his inscription i will
save the 3 object in data base

i dont like to save an object in database for every step (in the user
cancel his inscription for exemple !!!!)

On Mar 23, 1:14 pm, Tom Haskins-Vaughan <[email protected]>
wrote:
> I don't think storing objects is recommended. I think the prefered
> method is to save the object and store the id in the user session.
>
> On 3/23/10, Belgacem TLILI <[email protected]> wrote:
>
>
>
> > i have save an object ($book)  in the user session with the name bk
>
> > $this->getUser()->setAttribute('bk',$book);
>
> >  i need to save this object in the database after other actions
> > i use
>
> > $book= $this->getUser()->getAttribute('bk');
>
> > $book->save();
>
> > but this return all time null
>
> > anybody have an idea plz
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscribegooglegroups.com or reply to this email with the
> > words "REMOVE ME" as the subject.
>
> --
> Sent from my mobile device

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to