简体   繁体   中英

PHP Doctrine2 ORM “orm:generate:entities”

I want generate new "Banner" entity class:

vendor/bin/doctrine orm:generate:entities --generate-annotations="true" Entity/Banner

but I have this error:

[InvalidArgumentException] Entities destination directory 'Entity/Banner' does not exist.

The correct command is the next.

php vendor/bin/doctrine orm:generate-entities

You can see the docs in this page

But maybe your problem is other, like the directory does not exist. Did you try like this?

vendor/bin/doctrine orm:generate:entities --generate-annotations="true" Banner

Use tab key to autocomplet the command, maybe that can help

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM