I am aware of that, but then I have to change my question: I've got a modell with 1:n related objects and I need to change some settings preCreate the related objects
how can I access the (new generated) objects that are created via embedded forms in the controller action: processForm... $newObject = $form->save(); .... On 13 Okt., 12:49, Thomas Rabaix <[email protected]> wrote: > You are doing something wrong, models must be context independant .... > > > > On Wed, Oct 13, 2010 at 11:17 AM, axel at <[email protected]> wrote: > > works for me > > > thx a lot! > > > On 13 Okt., 11:09, Stéphane <[email protected]> wrote: > > > You can check for isset($_SERVER['HTTP_HOST']) I guess, > > > > Cheers, > > > > Before Printing, Think about Your Environmental Responsibility! > > > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > > > On Wed, Oct 13, 2010 at 11:08 AM, axel at <[email protected]> wrote: > > > > hello, > > > > > I need to distinguish if a model function was called within a web > > > > request or run within a task (to avoid error thrown by > > > > sfContext::getInstance() when executed within a taks) > > > > > thx for your help > > > > > -- > > > > 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]<symfony-users%[email protected]> > > <symfony-users%[email protected]<symfony-users%[email protected]> > > > > > For more options, visit this group at > > > >http://groups.google.com/group/symfony-users?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 users" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<symfony-users%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/symfony-users?hl=en > > -- > Thomas Rabaixhttp://rabaix.net -- 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
