from('objectForUserV'); return $query; } public function rules() { return array( array('statusId', 'safe'), array('query', 'safe') ); } protected function _bindQueryCondition(ActiveQuery $query) { $this->addCondition($query, 'id'); $this->addCondition($query, 'address', true); $this->addCondition($query, 'statusId'); return $query; } }