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

DoctrineBundle

by doctrine

Symfony2 Bundle for Doctrine

Doctrine Bundle

Doctrine DBAL & ORM Bundle for the Symfony Framework.

Because Symfony 2 does not want to force or suggest a specific persistence solutions on the users
this bundle was removed from the core of the Symfony 2 framework. Doctrine2 will still be a major player
in the Symfony world and the bundle is maintained by developers in the Doctrine and Symfony communities.

IMPORTANT: This bundle is developed for Symfony 2.1 and up. For Symfony 2.0 applications the DoctrineBundle
is still shipped with the core Symfony repository.

Build Status: Build Status

What is Doctrine?

The Doctrine Project is the home of a selected set of PHP libraries primarily focused on providing persistence
services and related functionality. Its prize projects are a Object Relational Mapper and the Database Abstraction
Layer it is built on top of. You can read more about the projects below or view a list of all projects.

Object relational mapper (ORM) for PHP that sits on top of a powerful database abstraction layer (DBAL).
One of its key features is the option to write database queries in a proprietary object oriented SQL dialect
called Doctrine Query Language (DQL), inspired by Hibernates HQL. This provides developers with a powerful
alternative to SQL that maintains flexibility without requiring unnecessary code duplication.

DBAL is a powerful database abstraction layer with many features for database schema introspection,
schema management and PDO abstraction.

Documentation

See the Resources/docs folder for more detailed documentation including configuration,
installation and entity listeners instructions.

Copyright (c) 2011 Fabien Potencier, 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:
dbal:
default_connection: ~
types:

# Prototype
name:
class: ~ # Required
commented: true
connections:

# Prototype
name:
dbname: ~
host: localhost
port: ~
user: root
password: ~
charset: ~
path: ~
memory: ~

# The unix socket to use for MySQL
unix_socket: ~

# True to use as persistent connection for the ibm_db2 driver
persistent: ~

# The protocol to use for the ibm_db2 driver (default to TCPIP if ommited)
protocol: ~

# True to use dbname as service name instead of SID for Oracle
service: ~

# The session mode to use for the oci8 driver
sessionMode: ~

# True to use a pooled server with the oci8 driver
pooled: ~

# Configuring MultipleActiveResultSets for the pdo_sqlsrv driver
MultipleActiveResultSets: ~
driver: pdo_mysql
platform_service: ~
schema_filter: ~
logging: false
profiling: false
driver_class: ~
wrapper_class: ~
keep_slave: ~
options:

# Prototype
key: []
mapping_types:

# Prototype
name: []
slaves:

# Prototype
name:
dbname: ~
host: localhost
port: ~
user: root
password: ~
charset: ~
path: ~
memory: ~

# The unix socket to use for MySQL
unix_socket: ~

# True to use as persistent connection for the ibm_db2 driver
persistent: ~

# The protocol to use for the ibm_db2 driver (default to TCPIP if ommited)
protocol: ~

# True to use dbname as service name instead of SID for Oracle
service: ~

# The session mode to use for the oci8 driver
sessionMode: ~

# True to use a pooled server with the oci8 driver
pooled: ~

# Configuring MultipleActiveResultSets for the pdo_sqlsrv driver
MultipleActiveResultSets: ~
orm:
default_entity_manager: ~
auto_generate_proxy_classes: false
proxy_dir: %kernel.cache_dir%/doctrine/orm/Proxies
proxy_namespace: Proxies
entity_managers:

# Prototype
name:
query_cache_driver:
type: array
host: ~
port: ~
instance_class: ~
class: ~
id: ~
namespace: ~
metadata_cache_driver:
type: array
host: ~
port: ~
instance_class: ~
class: ~
id: ~
namespace: ~
result_cache_driver:
type: array
host: ~
port: ~
instance_class: ~
class: ~
id: ~
namespace: ~
connection: ~
class_metadata_factory_name: Doctrine\ORM\Mapping\ClassMetadataFactory
default_repository_class: Doctrine\ORM\EntityRepository
auto_mapping: false
naming_strategy: doctrine.orm.naming_strategy.default
entity_listener_resolver: ~
repository_factory: ~
hydrators:

# Prototype
name: []
mappings:

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

# Prototype
name: []
numeric_functions:

# Prototype
name: []
datetime_functions:

# Prototype
name: []

# Register SQL Filters in the entity manager
filters:

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

# Prototype
name: []
resolve_target_entities:

# Prototype
interface: []
  • Merge pull request #401 from KingCrunch/fix-command
    By guilhermeblanco, 1 year ago
  • Merge pull request #405 from cordoval/patch-1
    By Ocramius, 1 year ago
  • english typo
    By cordoval, 1 year ago
  • bug #404 Enabling profiling should not automatically enable logging (tucksaun)
    By stof, 1 year ago
  • Enabling profiling should not enable logging
    By tucksaun, 1 year ago
  • Compare with dbname with existing databases needs unquoted dbname
    By KingCrunch, 1 year ago
  • Merge pull request #400 from garak/patch-1
    By stof, 1 year ago
  • fix typos in changelog
    By garak, 1 year ago
  • Update the changelog for 1.4.0
    By stof, 1 year ago
  • minor #398 Improve the Travis config (stof)
    By stof, 1 year ago
  • bug #397 Add an exception when the ORM layer is configured but not DBAL (stof)
    By stof, 1 year ago
  • Improve the Travis config
    By stof, 1 year ago
  • Add an exception when the ORM layer is configured but not DBAL
    By stof, 1 year ago
  • bug #366 Close connections and clear managers on shutdown (stof)
    By stof, 2 years ago
  • Change the documentation link to point to symfony.com
    By stof, 2 years ago
  • Revert "Merge pull request #390 from luciantugui/patch-1"
    By stof, 2 years ago
  • Merge pull request #390 from luciantugui/patch-1
    By Ocramius, 2 years ago
  • Update entity-listeners.rst
    By , 2 years ago
  • Changed a test from incomplete to skipped as it fits better
    By stof, 2 years ago
  • Fix the phpunit dependency
    By stof, 2 years ago
  • Changed the PHPUnit version to maintained ones
    By stof, 2 years ago
  • Merge pull request #381 from doctrine/factories-compat
    By Ocramius, 2 years ago
  • fixed low dep versions
    By fabpot, 2 years ago
  • added tests to low/high Symfony deps
    By fabpot, 2 years ago
  • Revert "added tests to low/high Symfony deps"
    By stof, 2 years ago
  • made the factories compatible with all Symfony versions (2.3 to 2.7)
    By fabpot, 2 years ago
  • added tests to low/high Symfony deps
    By fabpot, 2 years ago
  • minor #379 Fixes and tweaks for the documentation (javiereguiluz)
    By stof, 2 years ago
  • Fixes and tweaks for the documentation
    By javiereguiluz, 2 years ago
  • minor #377 Fixed the reStructuredText syntax errors of the docs (javiereguiluz)
    By stof, 2 years ago