我的假冒手法2在杰夫环境中无谓地工作。 当我转向生产环境时,问题就会出现。 当我打电话给拥有一系列实体的控制员,并把它编成序列,与联合后勤系统飞行员交火时,它便坠毁。 客户仍然收到答复,但json是空的,甚至不是“[]”。 当我看一看记录时,我可以读到这些错误:
security.INFO: Populated SecurityContext with an anonymous Token [] []
request.INFO: Matched route "employe_index" (parameters: "_controller": "PisteurWebRefugeManagerBundleCoreBundleControllerEmployeController::indexAction", "_route": "employe_index") [] []
request.CRITICAL: DoctrineCommonAnnotationsAnnotationException: [Semantical Error] The annotation "@proxy" in method DoctrineMongoDBCursor::current() was never imported. Did you maybe forget to add a "use" statement for this annotation? (uncaught exception) at /home/wpdemo/symfony/vendor/doctrine-common/lib/Doctrine/Common/Annotations/AnnotationException.php line 52 [] []
我研究了山角的错误,我发现这两个专题:
https://github.com/doctrine/mongodb-odm/issues/255 https://github.com/schmittjoh/JMSSerializerBundle/issues/51
这些议题无助于我,我真心会理解这个问题。 任何人都有想法?
[EDIT] Here is my configs:
DEV:
imports:
- { resource: config.yml }
framework:
router: { resource: "%kernel.root_dir%/config/routing_dev.yml" }
profiler: { only_exceptions: false }
web_profiler:
toolbar: true
intercept_redirects: false
monolog:
handlers:
main:
type: stream
path: %kernel.logs_dir%/%kernel.environment%.log
level: debug
firephp:
type: firephp
level: info
assetic:
use_controller: true
PROD:
imports:
- { resource: config.yml }
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
nested:
type: stream
path: %kernel.logs_dir%/%kernel.environment%.log
level: debug
[EDIT]
这是我指挥的:
php app/console cache:clear --env=prod --no-debug
php app/console cache:warmup
php app/console assets:install web
php app/console assetic:dump web --env=prod --no-debug