Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Doctrine Cli on Windows

I am having some trouble configuring doctrine orm on windows 8, php 5.4. I have installed Doctrine using Composer.

I have followed the docs to the letter but when I run any commands, php vendor/bin/doctrine orm:schema-tool:create for example, my command line just outputs

SRC_DIR="`pwd`"
cd "`dirname "$0"`"
cd "../doctrine/orm/bin"
BIN_TARGET="`pwd`/doctrine"
cd "$SRC_DIR"
"$BIN_TARGET" "$@"

I have also tried php vendor/bin/doctrine.php .... but it just prints out the above.

I have followed Doctrine's guide to the letter. Has anyone seen this before and if so, can you suggest anything?

like image 211
mikedhart Avatar asked Mar 26 '13 01:03

mikedhart


1 Answers

i found a solution

there are also a bin folder in vendor/doctrine/orm/bin/ you can use this one like this

php vendor/doctrine/orm/bin/doctrine orm:schema-tool:create

make sure you have root folder and a cli-config.php file is present in root folder.

below is location where i found a solution

https://groups.google.com/forum/#!msg/doctrine-user/_ph183Kh-5o/_P_coljB-dcJ

this is working fine for me .

like image 112
Bineet Chaubey Avatar answered Oct 14 '22 10:10

Bineet Chaubey