You need to add a --application and --env option to the task configuration
for it to have application context.

- Jon

On Thu, Oct 23, 2008 at 6:28 PM, Jack Bates <[EMAIL PROTECTED]> wrote:

>
> I am creating a symfony task for my project, and it needs to insert
> records into the database. I am using symfony 1.2 and the bundled
> sfDoctrinePlugin (so far it is quite awesome!)
>
> Unfortunately, when I run my task, I get this error:
>
> ket% ./symfony mytask
>
>
>  There is no open connection
>
>
> ket%
>
> Using the symfony --trace option, I can tell that the error comes from
> this line in my task:
>
>    $job = new HosterJob;
>
> - where the class HosterJob extends Doctrine_Record.
>
> What must I do in order to construct a Doctrine_Record in my task?
> >
>


-- 
Jonathan H. Wage
Open Source Software Developer & Evangelist
http://www.jwage.com
http://www.doctrine-project.org
http://www.symfony-project.org

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to