As far as i know they are and should be in sync, i'm using them all over the place in simpler queries.
For instance i'm using this in the same class file, wich works normally:
function getHotOffers(){
global $modx;
$select = $modx->newQuery('Countries');
//$select->innerJoin('Countries', 'Accomodations', 'Countries.id = Accomodations.land_id');
$select->where(array(
'showInMenu' => '1',
));
$select->limit('11');
$select->sortby('naam', 'ASC');
$result = $modx->getIterator('Countries', $select);
return $result;
}
Update, thought it might be something with the $select->select(array), so i tested that for above example(wanted to do that anyways to speed up things, does that speed up btw? ) that works, like i expected.
function getHotOffers(){
global $modx;
$select = $modx->newQuery('Countries');
//$select->innerJoin('Countries', 'Accomodations', 'Countries.id = Accomodations.land_id');
$select->where(array(
'showInMenu' => '1',
));
$select->limit('11');
$select->sortby('naam', 'ASC');
$select->select(array(
'id',
'naam',
'vluchtprijs',
));
$result = $modx->getCollection('Countries', $select);
return $result;
}
[ed. note: thapriest86 last edited this post 13 years, 1 month ago.]