If there is no sfContext, then it is mostly ran from CLI.
I don't know if there are other way to check it without a doubt.


Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Fri, May 14, 2010 at 8:32 PM, f1gm3nt <[email protected]> wrote:

> How can I get around using sfContext to get user information?
>
>
>
> On May 14, 2:17 pm, Lukas Kahwe Smith <[email protected]> wrote:
> > On 14.05.2010, at 20:14, f1gm3nt wrote:
> >
> > > So I'm faced with the problem of logging CRUD....
> >
> > > So if a user saves a form I need to insert information into a
> > > database. Right now I'm thinking that the symfony event system will
> > > work best. I've been playing around with it and so if a form is saved
> > > then if it's new, then it will notify 'object.create' and if the form
> > > is being updated then it will notify 'object.update'.
> >
> > > This seems like the most logical way to do this and I have a table in
> > > the database that stores this information. Has anyone else ever done
> > > this or can someone give some insights?
> >
> > just add a post save method in your doctrine base class to do the
> logging.
> >
> > regards,
> > Lukas Kahwe Smith
> > [email protected]
> >
> > --
> > 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 developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<symfony-devs%[email protected]>
> > For more options, visit this group athttp://
> groups.google.com/group/symfony-devs?hl=en
>
> --
> 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 developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<symfony-devs%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>

-- 
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 developers" 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-devs?hl=en

Reply via email to