【发布时间】:2011-12-25 13:22:35
【问题描述】:
圣诞快乐!
我确实有一个问题要在 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');
以上操作无效。我怎样才能做到这一点?提前谢谢!!!
寻宝者
【问题讨论】:
-
我无法理解您的问题。您想向数组中添加新对象,还是修改现有对象?
标签: php symfony1 doctrine symfony-1.4 doctrine-1.2