Skip to content

class Athena::ORM::Exception::Mapping
inherits RuntimeError #

Raised when the mapping of an entity is invalid, see AORM::Mapping::Class.

Included modules

Athena::ORM::Exception

Constructors#

.cannot_map_composite_primary_key_entities_as_foreign_id(class_name : AORM::Entity.class | String | Nil, target_entity : String, target_field : String) : self#

View source

.cannot_set_nullable_on_to_one_identifier_join_columns(class_name : String, field_name : String) : self#

View source

.duplicate_column_name(class_name : String, column_name : String) : self#

View source

.duplicate_field_mapping(entity : String, field_name : String) : self#

View source

.field_type_mismatch(class_name : String, field_name : String, value_type : String) : self#

View source

.illegal_inverse_identifier_association(class_name : String, field : String) : self#

View source

.illegal_lifecycle_callback_on_embedded_class(event : AORM::Events::EventArgs.class, class_name : String) : self#

View source

.illegal_orphan_removal(class_name : String, field : String) : self#

View source

.illegal_orphan_removal_on_identifier_association(class_name : String, field : String) : self#

View source

.illegal_to_many_identifier_association(class_name : String, field : String) : self#

View source

.integer_type_required_for_enum(class_name : String, field_name : String, type : String) : self#

View source

.invalid_association_type(entity_name : String, field_name : String, type : String) : self#

View source

.invalid_attribute_on_embeddable(entity_name : String, attribute_name : String) : self#

View source

.invalid_cascade_option(cascades : Enumerable(String), class_name : String, property_name : String) : self#

View source

.join_column_must_point_to_mapped_field(class_name : String, join_column : String) : self#

View source

.join_column_not_allowed_on_one_to_one_inverse_side(class_name : String, field_name : String) : self#

View source

.missing_field_name(entity : String) : self#

View source

.missing_required_option(field : String, expected_option : String, hint : String = "") : self#

View source

.missing_target_entity(field_name : String) : self#

View source

.no_id_defined(entity : String) : self#

View source

.one_to_many_requires_mapped_by(entity_name : String, field_name : String) : self#

View source

.proxy_not_allowed_on_to_one_inverse_side(class_name : String, field_name : String) : self#

View source

.single_id_not_allowed_on_composite_primary_key(entity : String) : self#

View source