How can I use my propel model inside a pake task ?

I've try to write something like this (see below) but I get the following
error :

  [PropelException]
  No connection params set for propel

What should I call inside the task to be able to use my model and request
the database ?
Any ideas ?? thanks ...


pake_desc('Tirage au sort des gagnants du jeux Trafic FM');
pake_task('tirage');

function run_tirage($task, $args)
{
    $jeu = new Jeux();
    $nbjeux = $jeu->getOnlineJeux();
    $nbjeux->next();
    $nbjeux = $nbjeux->getInt('nbjeux');
    if($nbjeux=1)
    {
        pake_echo('OK');
    }
}

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