Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
// available only once all UFC have set their conditions (UFO_Score)
if (is_null($this->query)) {
$where = $this->root->buildCondition($this);
+ $where = str_replace(array_keys($this->joinMetas),
+ $this->joinMetas,
+ $where);
}
if (is_null($this->orderby)) {
$orders = array();
} else {
$this->orderby = 'ORDER BY ' . implode(', ', $orders);
}
+ $this->orderby = str_replace(array_keys($this->joinMetas),
+ $this->joinMetas,
+ $this->orderby);
}
if (is_null($this->query)) {
if ($this->with_accounts) {