Symfony: Import sfGuardUser Data

Since I need to run ‘symfony propel:build-all-load‘ constantly while developing a Symfony project, to save myself from creating users for sfGuard plugin everytime it’s run, data from related table were dumped then saved as fixture data so that they are automatically loaded when I run the command.

Symfony: Database to fixture data

Note: this post was written when i was working on V1.1 or V1.2. Please scroll down to read updated note before you try anything. While developing a symfony project, it’s usually required to rebuild database and reload data constantly with ‘symfony propel:build-all‘ or ‘symfony propel:build-all-load‘ constantly. When this is run, test data are wiped. The…

Continue Reading »