Propel Generator missing when installed using composer

245 Views Asked by At

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/"]
    }
}
1

There are 1 best solutions below

0
On

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