public static function addModelField(TableMap $tableMap, ModelCriteria &$query, $field, $value = null)
    {
        if ($column = self::checkFieldExists($tableMap, $field)) {
            self::addQueryFilter($column, $query, $value);
        }
    }