Skip to content

Commit

Permalink
Update README.MD
Browse files Browse the repository at this point in the history
new info about fixtures
  • Loading branch information
Algatux authored and Alessandro Galli committed Oct 7, 2016
1 parent 17be28c commit 3174b96
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,18 @@ $this->get('mongo.connection.{connectionName}'); // [test_db, other_db, test_db_

To manipulate the database, please read the official [documentation](http://mongodb.github.io/mongo-php-library/classes/database/)

### Fixtures
This bundle supports doctrine style fixtures, to create one you will need to create a php class in your bundle '/DataFixtures/Mongo' directory for Example 'src/AppBundle/DataFixtures/Mongo/LoadTaskDataFixture.php'

NB: This class must implement at least the MongoFixtureInterface, if you need container support you can extend AbstractContainerAwareFixture to use the getContainer method.

### Commands

Some commands are provided:

* `mongodb:database:drop`: To drop a database.
* `mongodb:collection:drop`: To drop a collection.
* `mongodb:fixtures:load`: To load the fixtures.

### Query Profiling

Expand Down

0 comments on commit 3174b96

Please sign in to comment.