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