Hi Eno: You only need to intance sfDatabase manager. This is a batch script example:
<?php /** define('SF_ROOT_DIR', realpath(dirname(__file__).'/..')); define('SF_APP', 'your_app_name_here'); define('SF_ENVIRONMENT', 'cli'); // You must have a specific enviroment for batch script define('SF_DEBUG', false); $this->databaseManager = new sfDatabaseManager(); $this->databaseManager->initialize(); $mi_records = MyClassPeer::Doselect(New Criteria()); 2007/11/9, drmikecrowe <[EMAIL PROTECTED]>: > > > To do what? > > On Nov 9, 5:20 pm, Eno <[EMAIL PROTECTED]> wrote: > > Just wondering how we can use the peer classes from batch scripts? How > > do we use the sfDatabaseManager class? > > > > > -- Boris Duin Celular: 0416-8136373 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---