diablomedia / doctrine1-bundle
Symfony Doctrine1Bundle
Installs: 202
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 5
Type:symfony-bundle
Requires
- php: ^7.2 || ^8.0
- doctrine/doctrine1: ^1.2.0
- jdorn/sql-formatter: ^1.2.16
- symfony/cache: ^4.3.3|^5.0
- symfony/config: ^4.3.3|^5.0
- symfony/console: ^3.4.30|^4.3.3|^5.0
- symfony/dependency-injection: ^4.3.3|^5.0
- symfony/framework-bundle: ^3.4.30|^4.3.3|^5.0
- symfony/service-contracts: ^1.1.1|^2.0
Requires (Dev)
- diablomedia/php-cs-fixer-config: ^2.0.0
- phpstan/phpstan: 0.12.83
- psalm/plugin-symfony: ^2.2.4
- symfony/property-info: ^4.3.3|^5.0
- symfony/proxy-manager-bridge: ^3.4|^4.3.3|^5.0
- symfony/twig-bridge: ^3.4.30|^4.3.3|^5.0
- symfony/validator: ^3.4.30|^4.3.3|^5.0
- symfony/web-profiler-bundle: ^3.4.30|^4.3.3|^5.0
- symfony/yaml: ^3.4.30|^4.3.3|^5.0
- twig/twig: ^1.34|^2.12|^3.0
- vimeo/psalm: 4.7.0
Suggests
- symfony/web-profiler-bundle: To use the data collector.
- dev-main
- 1.0.0
- dev-dependabot/github_actions/actions/cache-3.0.7
- dev-dependabot/composer/vimeo/psalm-4.26.0
- dev-dependabot/github_actions/actions/cache-3.0.6
- dev-dependabot/github_actions/shivammathur/setup-php-2.21.1
- dev-dependabot/composer/phpstan/phpstan-1.8.2
- dev-dependabot/github_actions/actions/checkout-3.0.2
This package is auto-updated.
Last update: 2022-08-15 20:08:30 UTC
README
Symfony Bundle for Doctrine1 ORM
This is heavily based on the Symfony/Doctrine DoctrineBundle (https://github.com/doctrine/DoctrineBundle) but adapted to work with Doctrine1. This bundle allows you to configure Doctrine1 through Symfony's configuration and also adds a section to the Symfony profiler/debug toolbar so you can view query information in the same way you would with the DoctrineBundle.
Installation
Install using composer:
composer require diablomedia/doctrine1-bundle
While this bundle should work with the original Doctrine1 library, we recommend using our fork that is better tested against recent versions of PHP.
composer require diablomedia/doctrine1
Configuration
Enable the Bundle in Symfony:
<?php // config/bundles.php return [ // ... DiabloMedia\Bundle\Doctrine1Bundle\Doctrine1Bundle::class => ['all' => true], // ... ];
To configure your database connection, create a doctrine1.yaml
file in your config/packages
folder with the necessary connection credentials, here's a sample for mysql:
doctrine1: default_connection: writer connections: writer: url: '%env(resolve:WRITE_DATABASE_URL)%' cache_class: 'Doctrine_Cache_Array' enable_query_cache: true enable_result_cache: true reader: url: '%env(resolve:READ_DATABASE_URL)%' cache_class: 'Doctrine_Cache_Array' enable_query_cache: true enable_result_cache: true