/** * Clear the conditions to allow the reuse of the query object. * The ModelCriteria's Model and alias 'all the properties set by construct) will remain. * * @return ModelCriteria The primary criteria object */ public function clear() { parent::clear(); $this->with = array(); $this->primaryCriteria = null; $this->formatter = null; return $this; }