diff --git a/README.markdown b/README.markdown
index b659513..b6449b4 100644
--- a/README.markdown
+++ b/README.markdown
@@ -35,27 +35,31 @@ Installation
* Register this bundle in the `AppKernel` class:
- public function registerBundles()
- {
- $bundles = array(
- ...
+``` php
+public function registerBundles()
+{
+ $bundles = array(
+ ...
- // PropelBundle
- new Propel\PropelBundle\PropelBundle(),
- // register your bundles
- new Sensio\HelloBundle\HelloBundle(),
- );
+ // PropelBundle
+ new Propel\PropelBundle\PropelBundle(),
+ // register your bundles
+ new Sensio\HelloBundle\HelloBundle(),
+ );
- ...
- }
+ ...
+}
+```
* Don't forget to register the PropelBundle namespace in `app/autoload.php`:
- $loader->registerNamespaces(array(
- ...
+``` php
+$loader->registerNamespaces(array(
+ ...
- 'Propel' => __DIR__.'/../vendor/bundles',
- ));
+ 'Propel' => __DIR__.'/../vendor/bundles',
+));
+```
Sample Configuration
@@ -63,34 +67,36 @@ Sample Configuration
### Project configuration
- # in app/config/config.yml
- propel:
- path: "%kernel.root_dir%/../vendor/propel"
- phing_path: "%kernel.root_dir%/../vendor/phing"
- # charset: "UTF8"
- # logging: %kernel.debug%
- # build_properties:
- # xxxxx.xxxxx: xxxxxx
- # xxxxx.xxxxx: xxxxxx
+``` yaml
+# in app/config/config.yml
+propel:
+ path: "%kernel.root_dir%/../vendor/propel"
+ phing_path: "%kernel.root_dir%/../vendor/phing"
+# charset: "UTF8"
+# logging: %kernel.debug%
+# build_properties:
+# xxxxx.xxxxx: xxxxxx
+# xxxxx.xxxxx: xxxxxx
- # in app/config/config*.yml
- propel:
- dbal:
- driver: mysql
- user: root
- password: null
- dsn: mysql:host=localhost;dbname=test
- options: {}
- attributes: {}
- # default_connection: default
- # connections:
- # default:
- # driver: mysql
- # user: root
- # password: null
- # dsn: mysql:host=localhost;dbname=test
- # options: {}
- # attributes: {}
+# in app/config/config*.yml
+propel:
+ dbal:
+ driver: mysql
+ user: root
+ password: null
+ dsn: mysql:host=localhost;dbname=test
+ options: {}
+ attributes: {}
+# default_connection: default
+# connections:
+# default:
+# driver: mysql
+# user: root
+# password: null
+# dsn: mysql:host=localhost;dbname=test
+# options: {}
+# attributes: {}
+```
### Build properties
@@ -102,38 +108,42 @@ You can define _build properties_ by creating a `propel.ini` file in `app/config
But you can follow the Symfony2 way by adding build properties in `app/config/config.yml`:
- # in app/config/config.yml
- propel:
- build_properties:
- xxxxx.xxxx.xxxxx: XXXX
- xxxxx.xxxx.xxxxx: XXXX
- ...
+``` yaml
+# in app/config/config.yml
+propel:
+ build_properties:
+ xxxxx.xxxx.xxxxx: XXXX
+ xxxxx.xxxx.xxxxx: XXXX
+ ...
+```
### Sample Schema
Place the following schema in `src/Sensio/HelloBundle/Resources/config/schema.xml` :
-
-
+``` xml
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
+
+```
Commands
@@ -234,10 +244,12 @@ If none of this parameter are set all files, XML and SQL, in the directory will
A valid _XML fixtures file_ is:
-
-
-
-
+``` xml
+
+
+
+
+```
### Graphviz
@@ -251,13 +263,22 @@ It will write files in `app/propel/graph/`.
### Database
-You can drop a **database**:
+You can create a **database**:
- > php app/console propel:database:drop
+ > php app/console propel:database:create [--connection[=""]]
As usual, `--connection` allows to specify a connection.
+You can drop a **database**:
+
+ > php app/console propel:database:drop [--connection[=""]] [--force]
+
+As usual, `--connection` allows to specify a connection.
+
+Note that the `--force` option is needed to actually execute the SQL statements.
+
+
Known Problems
--------------
diff --git a/Resources/doc/README b/Resources/doc/README
index b659513..b6449b4 100644
--- a/Resources/doc/README
+++ b/Resources/doc/README
@@ -35,27 +35,31 @@ Installation
* Register this bundle in the `AppKernel` class:
- public function registerBundles()
- {
- $bundles = array(
- ...
+``` php
+public function registerBundles()
+{
+ $bundles = array(
+ ...
- // PropelBundle
- new Propel\PropelBundle\PropelBundle(),
- // register your bundles
- new Sensio\HelloBundle\HelloBundle(),
- );
+ // PropelBundle
+ new Propel\PropelBundle\PropelBundle(),
+ // register your bundles
+ new Sensio\HelloBundle\HelloBundle(),
+ );
- ...
- }
+ ...
+}
+```
* Don't forget to register the PropelBundle namespace in `app/autoload.php`:
- $loader->registerNamespaces(array(
- ...
+``` php
+$loader->registerNamespaces(array(
+ ...
- 'Propel' => __DIR__.'/../vendor/bundles',
- ));
+ 'Propel' => __DIR__.'/../vendor/bundles',
+));
+```
Sample Configuration
@@ -63,34 +67,36 @@ Sample Configuration
### Project configuration
- # in app/config/config.yml
- propel:
- path: "%kernel.root_dir%/../vendor/propel"
- phing_path: "%kernel.root_dir%/../vendor/phing"
- # charset: "UTF8"
- # logging: %kernel.debug%
- # build_properties:
- # xxxxx.xxxxx: xxxxxx
- # xxxxx.xxxxx: xxxxxx
+``` yaml
+# in app/config/config.yml
+propel:
+ path: "%kernel.root_dir%/../vendor/propel"
+ phing_path: "%kernel.root_dir%/../vendor/phing"
+# charset: "UTF8"
+# logging: %kernel.debug%
+# build_properties:
+# xxxxx.xxxxx: xxxxxx
+# xxxxx.xxxxx: xxxxxx
- # in app/config/config*.yml
- propel:
- dbal:
- driver: mysql
- user: root
- password: null
- dsn: mysql:host=localhost;dbname=test
- options: {}
- attributes: {}
- # default_connection: default
- # connections:
- # default:
- # driver: mysql
- # user: root
- # password: null
- # dsn: mysql:host=localhost;dbname=test
- # options: {}
- # attributes: {}
+# in app/config/config*.yml
+propel:
+ dbal:
+ driver: mysql
+ user: root
+ password: null
+ dsn: mysql:host=localhost;dbname=test
+ options: {}
+ attributes: {}
+# default_connection: default
+# connections:
+# default:
+# driver: mysql
+# user: root
+# password: null
+# dsn: mysql:host=localhost;dbname=test
+# options: {}
+# attributes: {}
+```
### Build properties
@@ -102,38 +108,42 @@ You can define _build properties_ by creating a `propel.ini` file in `app/config
But you can follow the Symfony2 way by adding build properties in `app/config/config.yml`:
- # in app/config/config.yml
- propel:
- build_properties:
- xxxxx.xxxx.xxxxx: XXXX
- xxxxx.xxxx.xxxxx: XXXX
- ...
+``` yaml
+# in app/config/config.yml
+propel:
+ build_properties:
+ xxxxx.xxxx.xxxxx: XXXX
+ xxxxx.xxxx.xxxxx: XXXX
+ ...
+```
### Sample Schema
Place the following schema in `src/Sensio/HelloBundle/Resources/config/schema.xml` :
-
-
+``` xml
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
+
+```
Commands
@@ -234,10 +244,12 @@ If none of this parameter are set all files, XML and SQL, in the directory will
A valid _XML fixtures file_ is:
-
-
-
-
+``` xml
+
+
+
+
+```
### Graphviz
@@ -251,13 +263,22 @@ It will write files in `app/propel/graph/`.
### Database
-You can drop a **database**:
+You can create a **database**:
- > php app/console propel:database:drop
+ > php app/console propel:database:create [--connection[=""]]
As usual, `--connection` allows to specify a connection.
+You can drop a **database**:
+
+ > php app/console propel:database:drop [--connection[=""]] [--force]
+
+As usual, `--connection` allows to specify a connection.
+
+Note that the `--force` option is needed to actually execute the SQL statements.
+
+
Known Problems
--------------
diff --git a/Resources/doc/README.markdown b/Resources/doc/README.markdown
index b659513..b6449b4 100644
--- a/Resources/doc/README.markdown
+++ b/Resources/doc/README.markdown
@@ -35,27 +35,31 @@ Installation
* Register this bundle in the `AppKernel` class:
- public function registerBundles()
- {
- $bundles = array(
- ...
+``` php
+public function registerBundles()
+{
+ $bundles = array(
+ ...
- // PropelBundle
- new Propel\PropelBundle\PropelBundle(),
- // register your bundles
- new Sensio\HelloBundle\HelloBundle(),
- );
+ // PropelBundle
+ new Propel\PropelBundle\PropelBundle(),
+ // register your bundles
+ new Sensio\HelloBundle\HelloBundle(),
+ );
- ...
- }
+ ...
+}
+```
* Don't forget to register the PropelBundle namespace in `app/autoload.php`:
- $loader->registerNamespaces(array(
- ...
+``` php
+$loader->registerNamespaces(array(
+ ...
- 'Propel' => __DIR__.'/../vendor/bundles',
- ));
+ 'Propel' => __DIR__.'/../vendor/bundles',
+));
+```
Sample Configuration
@@ -63,34 +67,36 @@ Sample Configuration
### Project configuration
- # in app/config/config.yml
- propel:
- path: "%kernel.root_dir%/../vendor/propel"
- phing_path: "%kernel.root_dir%/../vendor/phing"
- # charset: "UTF8"
- # logging: %kernel.debug%
- # build_properties:
- # xxxxx.xxxxx: xxxxxx
- # xxxxx.xxxxx: xxxxxx
+``` yaml
+# in app/config/config.yml
+propel:
+ path: "%kernel.root_dir%/../vendor/propel"
+ phing_path: "%kernel.root_dir%/../vendor/phing"
+# charset: "UTF8"
+# logging: %kernel.debug%
+# build_properties:
+# xxxxx.xxxxx: xxxxxx
+# xxxxx.xxxxx: xxxxxx
- # in app/config/config*.yml
- propel:
- dbal:
- driver: mysql
- user: root
- password: null
- dsn: mysql:host=localhost;dbname=test
- options: {}
- attributes: {}
- # default_connection: default
- # connections:
- # default:
- # driver: mysql
- # user: root
- # password: null
- # dsn: mysql:host=localhost;dbname=test
- # options: {}
- # attributes: {}
+# in app/config/config*.yml
+propel:
+ dbal:
+ driver: mysql
+ user: root
+ password: null
+ dsn: mysql:host=localhost;dbname=test
+ options: {}
+ attributes: {}
+# default_connection: default
+# connections:
+# default:
+# driver: mysql
+# user: root
+# password: null
+# dsn: mysql:host=localhost;dbname=test
+# options: {}
+# attributes: {}
+```
### Build properties
@@ -102,38 +108,42 @@ You can define _build properties_ by creating a `propel.ini` file in `app/config
But you can follow the Symfony2 way by adding build properties in `app/config/config.yml`:
- # in app/config/config.yml
- propel:
- build_properties:
- xxxxx.xxxx.xxxxx: XXXX
- xxxxx.xxxx.xxxxx: XXXX
- ...
+``` yaml
+# in app/config/config.yml
+propel:
+ build_properties:
+ xxxxx.xxxx.xxxxx: XXXX
+ xxxxx.xxxx.xxxxx: XXXX
+ ...
+```
### Sample Schema
Place the following schema in `src/Sensio/HelloBundle/Resources/config/schema.xml` :
-
-
+``` xml
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
+
+```
Commands
@@ -234,10 +244,12 @@ If none of this parameter are set all files, XML and SQL, in the directory will
A valid _XML fixtures file_ is:
-
-
-
-
+``` xml
+
+
+
+
+```
### Graphviz
@@ -251,13 +263,22 @@ It will write files in `app/propel/graph/`.
### Database
-You can drop a **database**:
+You can create a **database**:
- > php app/console propel:database:drop
+ > php app/console propel:database:create [--connection[=""]]
As usual, `--connection` allows to specify a connection.
+You can drop a **database**:
+
+ > php app/console propel:database:drop [--connection[=""]] [--force]
+
+As usual, `--connection` allows to specify a connection.
+
+Note that the `--force` option is needed to actually execute the SQL statements.
+
+
Known Problems
--------------