Posts Tagged ‘propel’

Store Symfony Sessions in Database with Propel

By marc • May 23rd, 2008

Previously, I wrote a post on how to store user sessions in a database using Doctrine. I figured that I would follow it up by writing this article to demonstrate how to do the same thing using Propel. The steps are pretty much similar, but with some slight variations.
Step1 - Create your sessions table

 

CREATE TABLE […]



Symfony Bulk Update with Propel

By marc • May 12th, 2008

Here is a quick example of how to do a bulk update with Propel within symfony. This is based on this code snippet on the symfony site. I thought it was extremely useful, so I wanted to post it as an easy reference for myself and others.
Suppose we had a query which looked like this:

 

UPDATE […]



Using Multiple Databases in Symfony with Propel

By marc • Apr 22nd, 2008

There comes a time in your symfony development career when you will need to connect to multiple databases from within one application. At first it may not be obvious how to configure symfony correctly to handle a couple different databases or database servers.