2
我需要創建一個帶有union的QueryBuilder,這有可能嗎?Union與Doctrine
$qb = $this->em->createQueryBuilder()
->select('table1.numObject AS id')
->select ('table1.name AS name')
->from("MyBundle:Table1", "table1")
和 工會
->select('table2.id AS id')
->select ('table2.name AS name')
->from("MyBundle:Table2", "table2")
注意:它必須是一個QueryBuilder的對象(而不是查詢或別的東西)
謝謝