0
メリークリスマス!2つのクエリを追加
は私が
$q1 = Doctrine_Query::create()
->from('order o')
->innerJoin('o.shop s ')
->innerJoin('o.customer c')
->where('o.id = ?', $this->orderid_hashed)
->fetchOne();
$testid = 19;
$q2 = Doctrine_Query::create()
->from('shopemployee se')
->where('se.id = ?', $testid);
$this->q_all = $q1+$q2;
だから、これが働いている、私は推測するsymfony 1.4で2つの教義クエリを追加するには、次の質問を持っています。しかし、これらのテーブルのどれかに何かを保存するにはどうすればいいですか?例:
$this->q_all -> setOrder()-> setId('123');
or
$this->q_all -> setShopemployee()-> setId('123');
これは機能しません。これどうやってするの?前もって感謝します!!!
グラフナー
質問の理解に問題があります。新しいオブジェクトを配列に追加するか、既存のオブジェクトを変更しますか? – MrGlass