diablomedia / doctrine1-bundle
Symfony Doctrine1Bundle
Installs: 203
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 0
Open Issues: 5
Type:symfony-bundle
Requires
- php: ~8.1 || ~8.2
- doctrine/doctrine1: ^1.2.0
- doctrine/sql-formatter: ^1.0.1
- symfony/cache: ^5.4 || ^6.0 || ^7.0
- symfony/config: ^5.4 || ^6.0 || ^7.0
- symfony/console: ^5.4 || ^6.0 || ^7.0
- symfony/dependency-injection: ^5.4 || ^6.0 || ^7.0
- symfony/framework-bundle: ^5.4 || ^6.0 || ^7.0
- symfony/service-contracts: ^1.1.1 || ^2.0 || 3.0
Requires (Dev)
- diablomedia/php-cs-fixer-config: ^2.1.0
- friendsofphp/php-cs-fixer: ^3.20.0
- phpstan/phpstan: 1.11.1
- psalm/plugin-symfony: ^2.2.4
- symfony/property-info: ^4.3.3 || ^5.0 || ^6.0 || ^7.0
- symfony/proxy-manager-bridge: ^5.4 || ^6.0 || ^7.0
- symfony/twig-bridge: ^5.4 || ^6.0 || ^7.0
- symfony/validator: ^5.4 || ^6.0 || ^7.0
- symfony/web-profiler-bundle: ^5.4 || ^6.0 || ^7.0
- symfony/yaml: ^5.4 || ^6.0 || ^7.0
- twig/twig: ^1.34 || ^2.12 || ^3.0
- vimeo/psalm: 4.30.0
Suggests
- symfony/web-profiler-bundle: To use the data collector.
- dev-main
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- dev-dependabot/composer/phpstan/phpstan-1.11.11
- dev-dependabot/github_actions/shivammathur/setup-php-2.31.1
- dev-dependabot/github_actions/actions/checkout-4.1.7
- dev-dependabot/composer/diablomedia/php-cs-fixer-config-tw-3.0.0
- dev-dependabot/composer/psalm/plugin-symfony-tw-4.0.4
This package is auto-updated.
Last update: 2024-11-19 20:49:47 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