i followed an online tutorial on integrating doctrine 2 and ZF2. i am able to insert data to database but whenever i run doctrine CLI it outputs:
#!/usr/bin/env sh
SRC_DIR="`pwd`"
cd "`dirname "$0"`"
cd "../doctrine/orm/bin"
BIN_TARGET="`pwd`/doctrine.php"
cd "$SRC_DIR"
"$BIN_TARGET" "$@"
which is the content to doctrine.php that i replaced with codes frome tutorial.
I found this on another question here and it works on Windows. There are also a bin folder in vendor/doctrine/orm/bin/ you can use this one like this in your console commands:
php vendor/doctrine/orm/bin/doctrine orm:schema-tool:create
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With