PHP code example of abacaphiliac / doctrine-orm-diagnostics-module
1. Go to this page and download the library: Download abacaphiliac/doctrine-orm-diagnostics-module library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
abacaphiliac / doctrine-orm-diagnostics-module example snippets
[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.