Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ZendFramework] Select from, Select query cannot join with another table
mimol
post
Post #1





Grupa: Zarejestrowani
Postów: 247
Pomógł: 5
Dołączył: 10.12.2007

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


Witam.
Napisałem taki kod
  1. $User = new Application_Model_DbTable_User();
  2. $select = $User->select()->from('user',array('id','pass');
  3. $this->view->result = $User->fetchAll($select);

Dostaję błąd
Select query cannot join with another table
Nie używam żadnego joina
  1. $User = new Application_Model_DbTable_User();
  2. $select = $User->select();
  3. $this->view->result = $User->fetchAll($select);

Taki kod działa

Wiem ze moge usutawic ->setIntegrityCheck(false), ale nie wiem dlaczego mi ten blad wyskakuje

Ten post edytował mimol 10.10.2012, 20:44:03
Go to the top of the page
+Quote Post

Posty w temacie


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: 2.10.2025 - 16:13