首页 > 解决方案 > 从教义2开始创建模式问题

问题描述

我正在参考学说文档编写教程。过程中出现了问题。

php 供应商/bin/doctrine orm:schema-tool:create

结果:

dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../doctrine/orm/bin" && pwd)

if [ -d /proc/cygdrive ] && [[ $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
   # We are in Cgywin using Windows php, so the path must be translated
   dir=$(cygpath -m "$dir");
fi

"${dir}/doctrine" "$@" doctrine

我需要帮助!谢谢大家

标签: phpsymfonydoctrine-ormdoctrine

解决方案


尝试从头部删除“php”。

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


推荐阅读