Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
作ることは可能ですか:
$q->createQuery('q') ->whereIn('q.id', $q2)
ここで、$q2は他のDoctrine_Queryオブジェクトです。私のサブクエリは複雑で、SQLで書きたくないので...
whereInを使用している間、パラメーターは配列である必要があります。execute(array()、Doctrine_Core :: HYDRATE_ARRAY)を使用して、オブジェクトの代わりに配列を返すことができます。