📜  获取集合选择查询 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:55.156000             🧑  作者: Mango

代码示例1
$collection->load();

// the following statements are equivalent
$collection->getSelect()->assemble();
$collection->getSelect()->__toString();
echo $collection->getSelect(); // will call magic method __toString() behind the scenes which in turn calls assemble()