Accessing the database and sending an email in a symfony batch script

Posted by morpheous on Stack Overflow See other posts from Stack Overflow or by morpheous
Published on 2010-05-21T15:16:59Z Indexed on 2010/05/21 15:20 UTC
Read the original article Hit count: 193

Filed under:

I am running Symfony 1.3.2 on Ubuntu. I need to write a batch script that can:

  • Access the database using the ORM
  • Send email(s)

IIRC, this was in a previous cookback, but I thing that was for an earlier version of Symfony (the API may have changed since).

Does anyone know how I may access the database via the ORM layer in a batch script and also how to send out email(s) in a batch script?

© Stack Overflow or respective owner

Related posts about symfony