Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 997ef97

Browse files
committed
Updated SchemaTool usage docs with mapping paths information example
1 parent 8aed5c7 commit 997ef97

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

manual/en/tools.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ for the ran operation.
169169

170170
Before using the orm:schema-tool commands, remember to configure your cli-config.php properly.
171171

172+
> **NOTE**
173+
>
174+
> When using the Annotation Mapping Driver you have to either setup your autoloader in the cli-config.php
175+
> correctly to find all the entities, or you can use the second argument of the `EntityManagerHelper` to
176+
> specifiy all the paths of your entities (or mapping files), i.e.
177+
> `new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($em, $mappingPaths);`
178+
172179
++ Convert Mapping Information
173180

174181
Doctrine comes with some special tools for working with the various supported

0 commit comments

Comments
 (0)