Skip to content

class Athena::ORM::Exception::MissingIdentifierField
inherits Exception #

Raised when the identifier passed to AORM::EntityManager#find is missing one of the fields of the entity's primary key.

em.find Order, {"id" => 1}                   # raises if Order's primary key is (id, region)
em.find Order, {"id" => 1, "region" => "eu"} # OK

Included modules

Athena::ORM::Exception

Constructors#

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

View source