Skip to content

class Athena::ORM::Exception::UnrecognizedIdentifierFields
inherits Exception #

Raised when the identifier passed to AORM::EntityManager#find has fields that aren't part of the entity's primary key.

em.find User, {"id" => 1, "name" => "George"} # raises, since User's primary key is only (id)

Included modules

Athena::ORM::Exception

Constructors#

.from_class_and_field_names(class_name : String, field_names : Enumerable(String)) : self#

View source