0
圣诞快乐!添加两个查询
我有一个问题,下面来symfony的1.4
$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;
所以这是工作,我想添加两个学说查询。但是,我现在如何在这些表格之一中保存一些东西。例如:
$this->q_all -> setOrder()-> setId('123');
or
$this->q_all -> setShopemployee()-> setId('123');
这是不行的。我怎样才能做到这一点?提前致谢!!!
Craphunter
我无法理解您的问题。你想添加一个新的对象到数组中,或修改一个现有的? – MrGlass 2011-12-25 15:04:49