Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Doctrine CLI outputs contents of doctrine.php

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.

like image 901
arjang27 Avatar asked Dec 12 '12 21:12

arjang27


1 Answers

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

like image 106
Petr Novotny Avatar answered Sep 19 '22 14:09

Petr Novotny