For the user's convenience, the select() method instantiates a
query object specific to the adapter, and sets the SELECT clause for it.
Example 83. Creating a structured query
<?php
$query = $documents->select()
->from('collectionName')
->where('year > ?', array(1945))
->limit(3);
$docs = $documents->query('collectionName', $query);
foreach ($docs as $doc) {
$id = $doc->getId();
echo "Found document with ID: "
. var_export($id, 1)
. "\n";
}




