Almanna.Entity.add_unique_constraint – almanna Reference Manual
Packages
almanna
Almanna
Entity
columns
constraints
dirty_columns
entity_name
in_storage
is_dirty
primary_key_list
primary_key_values
relationships
Entity
@delete
_get_property
_gtype_of
_normalize_property
_set_in_storage
_type_of
add_column
add_columns
add_has_many
add_has_one
add_many_to_many
add_might_have
add_unique_constraint
bind_data_from
bind_data_to
get_related
get_related_search
register_entity
reload
save
seal
search
set_primary_key
set_primary_keys
unseal
_notifier
add_unique_constraint
Description:
protected
void
add_unique_constraint
(
string
name,
string
[] columns)
throws
EntityError
Create a unique constraint corresponding to a database-provided unique constraint.
Parameters:
name
Name of constraint
columns
Array of strings containing column names