Change of the README to explain the new options of the load-fixtures command

This commit is contained in:
Maxime AILLOUD 2011-05-19 16:50:20 +02:00 committed by William DURAND
parent 35af040979
commit 301764d553

View file

@ -220,13 +220,18 @@ SQL will be write in `app/propel/sql/`.
You can load your own fixtures by using the following command:
> php app/console propel:load-fixtures [-d|--dir="..."] [--connection[="..."]]
> php app/console propel:load-fixtures [-d|--dir[="..."]] [--xml] [--sql] [--connection[="..."]]
As usual, `--connection` allows to specify a connection.
The `--dir` option allows to specify a directory containing the fixtures (default is: `app/propel/fixtures/`).
Note that the `--dir` expects a relative path from the root dir (which is `app/`).
The --xml parameter allows you to load only XML fixtures.
The --sql parameter allows you to load only SQL fixtures.
You can mix --xml parameter and --sql parameter to load XML and SQL fixtures.
If none of this parameter are set all files, XML and SQL, in the directory will be load.
A valid _XML fixtures file_ is:
<?xml version="1.0" encoding="utf-8"?>