Developed with love by KnpLabs Hire us for your project!
193

DoctrineMongoDBBundle

by doctrine

Integrates Doctrine MongoDB ODM with Symfony2

DoctrineMongoDBBundle

This bundle integrates the Doctrine2 MongoDB Object Document Mapper (ODM) library
into Symfony so that you can persist and retrieve objects to and from MongoDB.

Build Status

Documentation on how to install and use this bundle is available in the
Symfony2 documentation.

Compatibility

The composer.json file in each branch indicates Symfony2 compatibility.
Additionally, several tags are available:

  • 3.0.x for Symfony 2.1 (this tracks the master branch)
  • 2.2.x for Symfony 2.0 (this tracks the 2.0 branch)
  • 2.1.x and 2.0.x for Symfony 2.0 and older Doctrine MongoDB ODM versions
Copyright (c) 2006-2013 Doctrine Project

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
doctrine_mongodb:
document_managers:

# Prototype
id:
connection: ~
database: ~
logging: %kernel.debug%
profiler:
enabled: %kernel.debug%
pretty: %kernel.debug%
auto_mapping: false
filters:

# Prototype
name:
class: ~ # Required
enabled: false
parameters:

# Prototype
name: []
retry_connect: 0
retry_query: 0
metadata_cache_driver:
type: array
class: ~
host: ~
port: ~
instance_class: ~
id: ~
namespace: ~
mappings:

# Prototype
name:
mapping: true
type: ~
dir: ~
prefix: ~
alias: ~
is_bundle: ~
connections:

# Prototype
id:
server: ~
options:
authMechanism: ~
connect: ~
connectTimeoutMS: ~
db: ~
journal: ~
password: ~
readPreference: ~
readPreferenceTags: []
replicaSet: ~
socketTimeoutMS: ~
ssl: ~
username: ~
w: ~
wTimeoutMS: ~

# Deprecated. Please use the "journal" option instead.
fsync: ~

# Deprecated. Please use the "readPreference" option instead.
slaveOkay: ~

# Deprecated. Please use the "connectTimeoutMS" option instead.
timeout: ~

# Deprecated. Please use the "wTimeoutMS" option instead.
wTimeout: ~
resolve_target_documents:

# Prototype
interface: []
proxy_namespace: MongoDBODMProxies
proxy_dir: %kernel.cache_dir%/doctrine/odm/mongodb/Proxies
auto_generate_proxy_classes: false
hydrator_namespace: Hydrators
hydrator_dir: %kernel.cache_dir%/doctrine/odm/mongodb/Hydrators
auto_generate_hydrator_classes: false
default_document_manager: ~
default_connection: ~
default_database: default
default_commit_options:
j: ~
timeout: ~
w: ~
wtimeout: ~

# Deprecated. Please use the "j" option instead.
fsync: ~

# Deprecated. Please use the "w" option instead.
safe: ~
  • Merge pull request #288 from mhor/patch-1
    By stof, 1 year ago
  • fix bad copy paste
    By mhor, 1 year ago
  • Merge pull request #278 from SofHad/fixed-deprecated-type
    By stof, 2 years ago
  • Merge pull request #279 from SofHad/unused-imports
    By stof, 2 years ago
  • [Minor] Fixed unused imports
    By SofHad, 2 years ago
  • [Minor] Fixed deprecated class TypeTestCase
    By SofHad, 2 years ago
  • Merge pull request #264 from dbu/support-namespace-alias
    By stof, 2 years ago
  • Merge pull request #265 from ifdattic/patch-1
    By jmikola, 2 years ago
  • Fix typo: abitrary => arbitrary
    By ifdattic, 2 years ago
  • add support for bundle namespace alias
    By dbu, 2 years ago
  • Merge pull request #263 from loostro/patch-1
    By jmikola, 2 years ago
  • Update links to DoctrineODM documentation
    By loostro, 2 years ago
  • Merge pull request #260 from doctrine/filter-params
    By jmikola, 2 years ago
  • Documentation for filter configurations
    By jmikola, 2 years ago
  • Tests for filter configurations
    By jmikola, 2 years ago
  • Support filter parameter configuration in XML
    By jmikola, 2 years ago
  • Add configuration for filter parameters
    By jmikola, 2 years ago
  • Merge pull request #259
    By jmikola, 2 years ago
  • [Configuration] Added authMechanism option
    By jmikola, 2 years ago
  • minor #258 bundle autoloading moved to PSR4 (cordoval)
    By stof, 2 years ago
  • bundle autoloading moved to PSR4
    By stof, 2 years ago
  • Merge pull request #245 from giftcards/master
    By jmikola, 2 years ago
  • Merge pull request #249
    By jmikola, 2 years ago
  • Unit test for unsetting null password/username options
    By jmikola, 2 years ago
  • Unset username and password options when null (fixes #243)
    By jmikola, 2 years ago
  • Create 3.0.x changelog with BETA5 and BETA6 PR lists
    By jmikola, 2 years ago
  • Merge pull request #197 from doctrine/3.0-ResolveTargetDocumentListener
    By jmikola, 2 years ago
  • Make XML config fixtures consistent
    By jmikola, 2 years ago
  • Fix indentation
    By jmikola, 2 years ago
  • Make resolve_target_document config node declaration consistent
    By jmikola, 2 years ago