如果alredy使用SonataDoctrinePhpcrAdminBundle,如何开始使用orm enite与Sonata-Admin-bundle?
这个有可能 ?
my composer.json
"minimum-stability": "dev",
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.2.*",
"twig/extensions": "1.0.*",
"symfony/monolog-bundle": "2.2.*",
"symfony/assetic-bundle": "2.1.*",
"sensio/distribution-bundle": "2.2.*",
"symfony-cmf/symfony-cmf": "dev-master",
"symfony-cmf/simple-cms-bundle": "1.0.*",
"symfony-cmf/create-bundle": "1.0.*",
"jackalope/jackalope-jackrabbit": "1.0.*",
"jackalope/jackalope-doctrine-dbal":"dev-master",
"doctrine/phpcr-bundle": "1.0.*",
"doctrine/phpcr-odm": "1.0.*",
"doctrine/doctrine-bundle": "1.2.*",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"liip/functional-test-bundle": "dev-master",
"lunetics/locale-bundle": "dev-master",
"liip/doctrine-cache-bundle": "dev-master",
"sonata-project/doctrine-phpcr-admin-bundle": "1.0.*",
"symfony/twig-bridge": "2.2.*",
"jms/security-extra-bundle": "1.4.*",
"symfony-cmf/content-bundle": "1.0.*@dev",
"symfony-cmf/routing-extra-bundle": "1.0.*@dev",
"symfony-cmf/routing": "1.1.*@dev",
"symfony-cmf/routing-bundle": "1.1.*@dev",
"sonata-project/easy-extends-bundle": "2.1.*@dev",
"sonata-project/block-bundle": "2.2.*@dev",
"egeloen/ckeditor-bundle": "2.*",
"sensio/generator-bundle": "2.2.*"
},
我花了几天时间寻找解决方案并修复大多数错误。 有人在生产中使用Symfony-cmf?或者symfony-cmf现在还未准备好用于此段?
是否有更好的解决方案只能使用Sonata捆绑包?
答案 0 :(得分:1)
您应该为您的实体使用SonataDoctrineORMAdminBundle。 SonataDoctrinePhpcrAdminBundle仅适用于doctrine-phpcrodm项目管理的文档。 很可能并排使用两个捆绑包和相应的后端系统,因此您可以在同一个应用程序中混合使用orm和phpcrodm管理员。