Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Doctrine] Błąd serwera Apache
sinbad
post
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 5.06.2009

Ostrzeżenie: (0%)
-----


Witam

Mam taki problem z Doctrine przy wywołaniu metody execute() serwer Apache wysypuje się (następuje restart apache).
W logach serwera wystepuje taki komunikat:
  1. [notice] Parent: child process exited with status 3221225477 -- Restarting.


Przykład wywołania:
  1. <?php
  2. $query=Doctrine_Query::create()
  3.            ->select('u.*')
  4.            ->from('user u')
  5.            ->where('u.login=? AND u.pass=?',array($login,$pass));
  6.            $result=$query->execute();
  7. ?>

Odwzorowanie:
  1. <?php
  2. class User extends Doctrine_Record {
  3.  
  4.    public function setTableDefinition() {
  5.        $this->setTableName('user');
  6.        $this->hasColumn('identity', 'integer', 8, array('type' => 'integer', 'length' => 8, 'unsigned' => 1, 'primary' => true));
  7.        $this->hasColumn('login', 'string', 10, array('type' => 'string', 'length' => 10, 'fixed' => true, 'notnull' => true));
  8.        $this->hasColumn('pass', 'string', 10, array('type' => 'string', 'length' => 10, 'fixed' => true, 'notnull' => true));
  9.        $this->hasColumn('email', 'string', 30, array('type' => 'string', 'length' => 30, 'notnull' => true));
  10.        $this->hasColumn('dateRegistration', 'timestamp', null, array('type' => 'timestamp', 'notnull' => true));
  11.        $this->option('type', 'INNODB');  
  12.    }
  13. }
  14. ?>

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.
  1. <?php
  2. $userDao=Doctrine::getTable('User');
  3. $userDao->findAll();
  4. ?>

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

Ten post edytował sinbad 5.06.2009, 15:56:38
Go to the top of the page
+Quote Post

Posty w temacie
- sinbad   [Doctrine] Błąd serwera Apache   5.06.2009, 15:49:28


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 25.12.2025 - 10:19