Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 30, 2024 via composer

doctrine/doctrine-bundle 2.11.1

Symfony DoctrineBundle
Package summary
Share
0
issues
1
license
38
MIT
Package created
17 Nov 2011
Version published
15 Nov 2023
Maintainers
1
Total deps
38
Direct deps
17
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
38 Packages, Including:
doctrine/cache@2.2.0
doctrine/dbal@4.0.2
doctrine/deprecations@1.1.3
doctrine/doctrine-bundle@2.11.1
doctrine/event-manager@2.0.0
doctrine/persistence@3.3.2
doctrine/sql-formatter@1.2.0
psr/cache@3.0.0
psr/container@2.0.2
psr/event-dispatcher@1.0.0
psr/log@3.0.0
symfony/cache@v7.0.7
symfony/cache-contracts@v3.4.2
symfony/config@v7.0.7
symfony/console@v7.0.7
symfony/dependency-injection@v7.0.7
symfony/deprecation-contracts@v3.4.0
symfony/doctrine-bridge@v7.0.7
symfony/error-handler@v7.0.7
symfony/event-dispatcher@v7.0.7
symfony/event-dispatcher-contracts@v3.4.2
symfony/filesystem@v7.0.7
symfony/finder@v7.0.7
symfony/framework-bundle@v7.0.7
symfony/http-foundation@v7.0.7
symfony/http-kernel@v7.0.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-grapheme@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/polyfill-php83@v1.29.0
symfony/process@v7.0.7
symfony/routing@v7.0.7
symfony/service-contracts@v3.4.2
symfony/string@v7.0.7
symfony/var-dumper@v7.0.7
symfony/var-exporter@v7.0.7
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

17
All Dependencies CSV
β“˜ This is a list of doctrine/doctrine-bundle 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
doctrine/cache2.2.015.99 kBMIT
prod
doctrine/dbal4.0.2-MIT
prod dev
doctrine/deprecations1.1.37.42 kBMIT
prod dev
doctrine/persistence3.3.2-MIT
prod dev
doctrine/sql-formatter1.2.0-MIT
prod
psr/log3.0.06.77 kBMIT
prod dev
symfony/cachev7.0.7-MIT
prod dev
symfony/configv7.0.7-MIT
prod dev
symfony/consolev7.0.7-MIT
prod dev
symfony/dependency-injectionv7.0.7-MIT
prod dev
symfony/deprecation-contractsv3.4.03.27 kBMIT
prod dev
symfony/doctrine-bridgev7.0.7-MIT
prod
symfony/framework-bundlev7.0.7-MIT
prod
symfony/polyfill-php80v1.29.0-MIT
prod dev
symfony/service-contractsv3.4.2-MIT
prod dev
symfony/stringv7.0.7-MIT
prod dev
symfony/var-exporterv7.0.7-MIT
prod dev

Visualizations

Frequently Asked Questions

What does doctrine/doctrine-bundle do?

Doctrine Bundle is an integral component for the Symfony Framework and is developed under the Doctrine Project. It primarily provides persistence services and related functionalities. This is executed with the help of its Object Relational Mapper (ORM) and the robust Database Abstraction Layer (DBAL) which forms its foundation. The Doctrine ORM grants developers an option to script database queries using their proprietary object-oriented SQL dialect called Doctrine Query Language (DQL). This grants them an efficient alternative to SQL and lets them maintain flexibility without necessitating excessive code duplication. Meanwhile, DBAL offers an array of features for database schema introspection, schema management, and PDO abstraction.

How do you use doctrine/doctrine-bundle?

To use Doctrine Bundle in your Symfony project, you must first install it using the Composer dependency manager. Here is a command to install Doctrine Bundle:

composer require doctrine/doctrine-bundle

Once Doctrine Bundle is installed, it can be used to configure database connections and use the console for RDBMS administration. Here is an example of basic setup in Symfony:

//.env
DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name

//config/packages/doctrine.yaml
doctrine:
    dbal:
        driver: 'pdo_mysql'
        server_version: '5.7'
        charset: utf8mb4
    orm:
        auto_generate_proxy_classes: true
        naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
        auto_mapping: true
        mappings:
            App:
                is_bundle: false
                type: annotation
                dir: '%kernel.project_dir%/src/Entity'
                prefix: 'App\Entity'
                alias: App

With this setup, you can then create entity repositories with Doctrine:

//src/Repository/UserRepository.php
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

class UserRepository extends ServiceEntityRepository
{
    public function __construct(ManagerRegistry $registry)
    {
        parent::__construct($registry, User::class);
    }
    //...
}

This example demonstrates how to configure the Doctrine Bundle, define the ORM mappings and create entity repositories.

Where are the doctrine/doctrine-bundle docs?

The official documentation for Doctrine Bundle is rendered and readily accessible on the Symfony website at this URL. The source of the documentation is available in the Resources/docs folder in the repository. The documentation provides in-depth details on how to configure and use the Doctrine Bundle. Additionally, it also serves as an extensive reference guide to the Doctrine Query Language (DQL) and DBAL functionalities.