我有以下错误消息:
[Doctrine\DBAL\Driver\OCI8\OCI8Exception]
执行/app/logs/dev.log
和php app/console cache:clear
后,这是php app/console doctrine:schema:update --force
的内容:
[2018-04-11 08:01:51] event.DEBUG: Notified event "console.command" to listener "Symfony\Bridge\Monolog\Handler\ConsoleHandler::onCommand". [] []
[2018-04-11 08:01:52] event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onTerminate". [] []
[2018-04-11 08:01:52] event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bridge\Monolog\Handler\ConsoleHandler::onTerminate". [] []
[2018-04-11 08:02:05] event.DEBUG: Notified event "console.command" to listener "Symfony\Bridge\Monolog\Handler\ConsoleHandler::onCommand". [] []
[2018-04-11 08:02:05] event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onTerminate". [] []
[2018-04-11 08:02:05] event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bridge\Monolog\Handler\ConsoleHandler::onTerminate". [] []
每当我尝试使用此命令时:
php app/console doctrine:schema:update --force
我想要的只是在Oracle数据库中更新我的实体。
这是我的parameters.yml
:
parameters:
database_driver: oci8
database_host: *********************
database_port: 1526
database_name: tgp
database_user: appsread
database_password: ******** //
mailer_transport: smtp
mailer_host: localhost
mailer_user: null
mailer_password: null
locale: en
secret: ThisTokenIsNotSoSecretChangeIt
debug_toolbar: true
debug_redirects: false
use_assetic_controller: true
每当我们生成实体时,它也不会在数据库中创建任何实体。对不起,我只是Symfony的新手。我试过搜索但仍然无法找到答案。
更新
执行php -m
后:
[PHP Modules]
bz2
Core
ctype
curl
date
dom
ereg
fileinfo
filter
ftp
gmp
hash
iconv
json
ldap
libxml
mbstring
mysql
mysqlnd
oci8
pcre
PDO
PDO_ODBC
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
[Zend Modules]