Answer the question
In order to leave comments, you need to log in
How to connect cloud.mongo.db to symfony's shopker engine?
Shopker is an engine for creating an online store. Used: PHP framework Symfony 4.x, Angular 7+, MongoDB 3+
On the hosting, the application was installed in the usual way + hosting mongo.db. But I need to connect cloud.mongo.db
What should I change in settings?
doctrine_mongodb.yaml
doctrine_mongodb:
auto_generate_proxy_classes: '%kernel.debug%'
auto_generate_hydrator_classes: '%kernel.debug%'
connections:
default:
#server: 'mongodb://%mongodb_user%:%mongodb_password%@%mongodb_server%:%mongodb_port%'
server: 'mongodb://%mongodb_server%:%mongodb_port%'
#server: '%mongodb_uri%'
options: {}
default_database: '%mongodb_database%'
document_managers:
default:
auto_mapping: true
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/App/Document'
prefix: App\Document\
alias: App
AppMainBundle:
is_bundle: true
type: annotation
dir: 'Document'
prefix: App\MainBundle\Document\
alias: AppMainBundle
ImportExportBundle:
is_bundle: true
type: annotation
dir: 'Document'
prefix: Andchir\ImportExportBundle\Document\
alias: ImportExportBundle
mongodb+srv://user:<password>@db1-qtnpj.azure.mongodb.net/test?retryWrites=true&w=majority
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question