2017 © Pedro Peláez
 

library doctrine-orm-diagnostics-module

Integration of doctrine/doctrine-orm-module, zendframework/zenddiagnostics, and (optionally) doctrine/migrations.

image

abacaphiliac/doctrine-orm-diagnostics-module

Integration of doctrine/doctrine-orm-module, zendframework/zenddiagnostics, and (optionally) doctrine/migrations.

  • Saturday, July 23, 2016
  • by abacaphiliac
  • Repository
  • 1 Watchers
  • 0 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Scrutinizer Code Quality Code Coverage Build Status, (*1)

abacaphiliac/doctrine-orm-diagnostics-module

Integration of doctrine/doctrine-orm-module and zendframework/zenddiagnostics. Provides ZF2 Diagnostic checks of Doctrine ORM Connection(s) and Schema., (*2)

Installation

composer require abacaphiliac/doctrine-orm-diagnostics-module

Usage

Add Abacaphiliac\DoctrineORMDiagnosticsModule to your application module config., (*3)

What can I do if I don't use orm_default?

Create your own CheckConnectionFactory (a very simple factory) and override the doctrine.orm_diagnostics.connection service in your application's service_manager.factories config., (*4)

Sample Output

[vagrant@vagrant]$ php public/index.php diag -v --debug
  OK   ZF: PHP Version: Current PHP version is 5.6.5
       ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
       '5.6.5'
       ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  OK   DoctrineORMModule: Database Connection: Doctrine\DBAL\Connections\MasterSlaveConnection
       ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
       array (
         'slave' => 'connected',
         'master' => 'connected',
       )
       ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 FAIL  DoctrineORMModule: ORM Validate Schema: Doctrine\ORM\Tools\Console\Command\ValidateSchemaCommand
       ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
       array (
         0 => '[Mapping]  OK - The mapping files are correct.',
         1 => '[Database] FAIL - The database schema is not in sync with the current mapping file.',
       )
       ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 failures, 0 warnings, 2 successful checks.

Dependencies

See composer.json., (*5)

Contributing

composer update && vendor/bin/phing

This library attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request., (*6)

The Versions

23/06 2016
22/06 2016

dev-diagnostics

dev-diagnostics

Integration of doctrine/doctrine-orm-module and zendframework/zenddiagnostics

  Sources   Download

MIT

The Requires

 

The Development Requires

by Timothy Younger

orm zf2 doctrine module zendframework diagnostics