Hallo,
ich will in ZF Doctrine integrieren, nur leider kommt wenn ich die Kommandozeilescript ausführe eine Fehlermeldung:
Hier mein Code:
Datei: doctrine-cli
Datei: global.php
Datei: schema.yml
Und durch denn Fehler erzeugt dir mir meine Tabellen nicht!!!
Liegt der Fehler am Server oder mache ich Programmiertechnisch was falsch??
ich will in ZF Doctrine integrieren, nur leider kommt wenn ich die Kommandozeilescript ausführe eine Fehlermeldung:
Code:
orFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli dql <br /> <b>Notice</b>: Use of undefined constant STDOUT - assumed 'STDOUT' in <b>/homepages/31/d180125557/htdocs /kidscollege-v2/library/doctrine/Doctrine /Cli/AnsiColorFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli drop-db <br /> <b>Notice</b>: Use of undefined constant STDOUT - assumed 'STDOUT' in <b>/homepages/31/d180125557/htdocs /kidscollege-v2/library/doctrine/Doctrine /Cli/AnsiColorFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli dump-data <br /> <b>Notice</b>: Use of undefined constant STDOUT - assumed 'STDOUT' in <b>/homepages/31/d180125557/htdocs /kidscollege-v2/library/doctrine/Doctrine /Cli/AnsiColorFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli generate-migration <br /> <b>Notice</b>: Use of undefined constant STDOUT - assumed 'STDOUT' in <b>/homepages/31/d180125557/htdocs /kidscollege-v2/library/doctrine/Doctrine /Cli/AnsiColorFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli generate-migrations-db <br /> <b>Notice</b>: Use of undefined constant STDOUT - assumed 'STDOUT' in <b>/homepages/31/d180125557/htdocs /kidscollege-v2/library/doctrine/Doctrine /Cli/AnsiColorFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli generate-migrations-models <br /> <b>Notice</b>: Use of undefined constant STDOUT - assumed 'STDOUT' in <b>/homepages/31/d180125557/htdocs /kidscollege-v2/library/doctrine/Doctrine /Cli/AnsiColorFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli generate-models-db <br /> <b>Notice</b>: Use of undefined constant STDOUT - assumed 'STDOUT' in <b>/homepages/31/d180125557/htdocs /kidscollege-v2/library/doctrine/Doctrine /Cli/AnsiColorFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli generate-models-yaml <br /> <b>Notice</b>: Use of undefined constant STDOUT - assumed 'STDOUT' in <b>/homepages/31/d180125557/htdocs /kidscollege-v2/library/doctrine/Doctrine /Cli/AnsiColorFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli generate-sql <br /> <b>Notice</b>: Use of undefined constant STDOUT - assumed 'STDOUT' in <b>/homepages/31/d180125557/htdocs /kidscollege-v2/library/doctrine/Doctrine /Cli/AnsiColorFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli generate-yaml-db <br /> <b>Notice</b>: Use of undefined constant STDOUT - assumed 'STDOUT' in <b>/homepages/31/d180125557/htdocs /kidscollege-v2/library/doctrine/Doctrine /Cli/AnsiColorFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli generate-yaml-models <br /> <b>Notice</b>: Use of undefined constant STDOUT - assumed 'STDOUT' in <b>/homepages/31/d180125557/htdocs /kidscollege-v2/library/doctrine/Doctrine /Cli/AnsiColorFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli load-data <br /> <b>Notice</b>: Use of undefined constant STDOUT - assumed 'STDOUT' in <b>/homepages/31/d180125557/htdocs /kidscollege-v2/library/doctrine/Doctrine /Cli/AnsiColorFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli load-dummy-data <br /> <b>Notice</b>: Use of undefined constant STDOUT - assumed 'STDOUT' in <b>/homepages/31/d180125557/htdocs /kidscollege-v2/library/doctrine/Doctrine /Cli/AnsiColorFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli migrate <br /> <b>Notice</b>: Use of undefined constant STDOUT - assumed 'STDOUT' in <b>/homepages/31/d180125557/htdocs /kidscollege-v2/library/doctrine/Doctrine /Cli/AnsiColorFormatter.php</b> on line <b>75</b><br /> ./doctrine-cli rebuild-db X-Powered-By: PHP/5.2.6 Content-type: text/html
Datei: doctrine-cli
PHP-Code:
#!/usr/bin/env php5
<?php
require dirname(__FILE__).'/../application/global.php';
$cli = new Doctrine_Cli(Zend_Registry::get('doctrine_config'));
$cli->run($_SERVER['argv']);
?>
Datei: global.php
PHP-Code:
<?php
error_reporting(E_ALL | E_STRICT);
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
date_default_timezone_set('Europe/Berlin');
/*
* Setup libraries & autoloaders
*/
set_include_path(dirname(__FILE__).'/../library/zendframework'
. PATH_SEPARATOR . dirname(__FILE__).'/../library/doctrine'
. PATH_SEPARATOR . dirname(__FILE__).'/models'
. PATH_SEPARATOR . dirname(__FILE__).'/models/generated'
. PATH_SEPARATOR . get_include_path());
require 'Zend/Loader.php';
Zend_Loader::registerAutoload('Zend_Loader');
/*
* Set super-global data
*/
Doctrine_Manager::connection("mysql://xxx:xx@xx/xx");
/*
* Configure Doctrine
*/
Zend_Registry::set('doctrine_config', array(
'data_fixtures_path' => dirname(__FILE__).'/doctrine/data/fixtures',
'models_path' => dirname(__FILE__).'/models',
'migrations_path' => dirname(__FILE__).'/doctrine/migrations',
'sql_path' => dirname(__FILE__).'/doctrine/data/sql',
'yaml_schema_path' => dirname(__FILE__).'/doctrine/schema'
));
?>
Code:
--- detect_relations: true User: columns: username: string password: string contact_id: integer Contact: columns: first_name: string last_name: string phone: string email: string address: string
Liegt der Fehler am Server oder mache ich Programmiertechnisch was falsch??
Kommentar