Skip to content

Commit

Permalink
Merge pull request #212 from alexislefebvre/gh-83-fix-documentation-a…
Browse files Browse the repository at this point in the history
…bout-doctrine/orm-version

gh-83: fix documentation about version of doctrine/orm
  • Loading branch information
alexislefebvre committed Oct 4, 2022
2 parents 3c1bd73 + f607d25 commit 9b50ef7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,17 +330,17 @@ $fixtures = $this->databaseTool->loadAliceFixture($files, false, null, 'doctrine
### Non-SQLite ([↑](#methods))

The Bundle will not automatically create your schema for you unless you use SQLite
or use `doctrine/orm` < 2.6.
or use `doctrine/orm` >= 2.6.

So you have several options:

1. use SQLite driver in tests
2. upgrade `doctrine/orm` :
- use SQLite driver in tests
- upgrade `doctrine/orm` :

```bash
composer require doctrine/orm:^2.6
```
3. if you prefer to use another database but want your schema/fixtures loaded
- if you prefer to use another database but want your schema/fixtures loaded
automatically, you'll need to do that yourself. For example, you could write a
`setUp()` function in your test, like so:

Expand Down

0 comments on commit 9b50ef7

Please sign in to comment.