简体   繁体   中英

Propel Generator missing when installed using composer

I am using propel via composer. But I am not able to use propel-gen command as mentioned here

> propel-gen datadump

Although I was able to use the reverse command via propel.bat, but when I use datadump command I get this:

$ ./vendor/bin/propel.bat datadump
[InvalidArgumentException]
Command "datadump" is not defined.

This is how my composer.json looks like:

{
    "require": {
        "slim/slim": "2.*",
        "propel/propel": "~2.0@dev"
    },
    "autoload": {
        "classmap": ["controllers/"]
    }
}

According to you composer.json you've installed Propel v2.x

For Propel v2.x onwards the command is Propel .

Also the link you included is for 1.x not 2.x

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