Mam taki problem z Doctrine przy wywołaniu metody execute() serwer Apache wysypuje się (następuje restart apache).
W logach serwera wystepuje taki komunikat:
[notice] Parent: child process exited with status 3221225477 -- Restarting.
Przykład wywołania:
<?php $query=Doctrine_Query::create() ->select('u.*') ->from('user u') $result=$query->execute(); ?>
Odwzorowanie:
<?php class User extends Doctrine_Record { public function setTableDefinition() { $this->setTableName('user'); $this->hasColumn('identity', 'integer', 8, array('type' => 'integer', 'length' => 8, 'unsigned' => 1, 'primary' => true)); $this->hasColumn('login', 'string', 10, array('type' => 'string', 'length' => 10, 'fixed' => true, 'notnull' => true)); $this->hasColumn('pass', 'string', 10, array('type' => 'string', 'length' => 10, 'fixed' => true, 'notnull' => true)); $this->hasColumn('email', 'string', 30, array('type' => 'string', 'length' => 30, 'notnull' => true)); $this->hasColumn('dateRegistration', 'timestamp', null, array('type' => 'timestamp', 'notnull' => true)); $this->option('type', 'INNODB'); } } ?>
Dziwne w tym przypadku jest to że na każdej tabeli wystepuje ten błąd. Jeżeli w deklaracji odwzorowania zostawie tylko pierwszą kolumnę (identity -klucz główny) zapytanie wykona się poprawnie(oczywiście usuwając zbedne elementy z zapytania). Ten sam błąd wystepuje w przypadku wykorzystania metod find() oraz findAll() o ile zadeklarowanie sa wszystkie kolumny, jeżeli tylko PK to wszystko OK.
<?php $userDao=Doctrine::getTable('User'); $userDao->findAll(); ?>
Samo zapisywanie obiektów do bazy wykonywanie jest bezproblemowo. Może ktoś będzie się orientował w czym może być problem? Przykład jest najprostszy, ksiązkowy a tu taki bład :/ Dzięki, pozdrawiam