symfony PHPフレームワークpart2 (531レス)
1-

261
(3): nobodyさん [sage] 2010/11/15(月) 23:40:15 ID:??? AAS
これ、どうゆう意味ですか?

> 500 | Internal Server Error | Doctrine_Query_Exception
> The root class of the query (alias s) must have at least one field selected.

ユーザー毎の売上げを集計したいだけなんだけど。。。

#action.php
 public function executeSalelist(sfWebRequest $request)
 {
   $this->saless = Doctrine_Query::create()
   ->select('s.user_id as id, p.name, sum(s.amount) as amount')
   ->from('Sales s')
   ->leftJoin('s.Profile p')
   ->groupBy('id')
   ->execute();
 }
1-
あと 270 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.011s