function getSelectQueryHandlerFor($tableName, $tableMap, $fieldMapPrefixed, $distinct=true) { $qh = $this->getSimpleQueryHandler(); $qh->select_from($fieldMapPrefixed, $tableName, $distinct); // NB, distinct gives trouble with sort by columnt not in the SELECT if ($this->polymorphismPropName) $qh->joinAllById($tableMap, $tableName); return $qh; } |