Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony] Zapytanie Doctrine
kusiu
post
Post #1





Grupa: Zarejestrowani
Postów: 163
Pomógł: 10
Dołączył: 24.01.2006

Ostrzeżenie: (30%)
XX---


w akcji pobieram dane w ten sposób:

  1. $this->shoe = Doctrine::getTable('Shoes')->find($request->getParameter('ids'));


i jest wszystko OK.

Natomiast gdy robię to takim sposobem:

  1. $this->shoe = Doctrine::getTable('Shoes')
  2. ->createQuery('s')
  3. ->where('ids = ?', $request->getParameter('ids'))
  4. ->execute();


wywala błąd nieznanej metody getTytul() itd ...

W czym tkwi błąd (IMG:style_emoticons/default/questionmark.gif)

Ten post edytował kusiu 5.06.2010, 14:13:01
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: 25.12.2025 - 14:09