public static function extractUpdateQuery(&$input, PermanentObject $object) {
		static::onEdit($input, $object);
		
		foreach( $input as $fieldName => $fieldValue ) {
			// If saving object, value is the same, validator should check if value is new
			if( !in_array($fieldName, static::$fields) ) {
				unset($input[$fieldName]);
			}
		}
		
		$options = array(
			'what'   => $input,
			'table'  => static::$table,
			'where'  => static::getIDField() . '=' . $object->id(),
			'number' => 1,
		);
		
		return $options;
	}