I follow the tutorial Getting Started with Doctrine¶
<http://doctrine-orm.readthedocs.org/en/latest/tutorials/getting-started.html>,
it defines this directory structure:
|-- config
| |-- xml
| `-- yaml
`-- src
it also loads the src directory using composer autoload command:
{
"require": {
"doctrine/orm": "2.4.*",
"symfony/yaml": "2.*"
},
"autoload": {
*"psr-0": {"": "src/"}*
}
}
I tried to create Path entity in my custom directory, for example:
|-- config
| |-- xml
| `-- yaml
Path.dcm.yml
|-- modules
|--Sync
|--Entity
Path.php
I modify the line *"psr-0": {"": "src/"} *to *"psr-0": {"*
*Gush\\Sync\\Entity**": "**/modules/Sync/Entity'**"} *and run composer
update.
I execute "php vendor/bin/doctrine orm:schema-tool:create " , it shows
this error:
[Doctrine\Common\Persistence\Mapping\MappingException]
Class 'Path' does not exist
Anyone met the same problem before? Please give me some clues. thanks in
advance.
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.