function addHaving($expr, $_ = null) { $queryAndArgs = func_get_args(); if (count($queryAndArgs) > 1) { $this->db->_expandPlaceholders($queryAndArgs); } $this->having[] = $queryAndArgs[0]; return $this; }