Skip to content

struct Athena::ORM::DefaultRepositoryFactory
inherits Struct #

Creates the repositories returned by AORM::EntityManager#repository, reusing them for each entity manager.

An entity's repository is its custom repository_class, see AORMA::Entity, or an AORM::EntityRepository of the entity otherwise.

Included modules

Athena::ORM::RepositoryFactoryInterface

Constructors#

Methods#

#initialize#

View source

#repository(em : AORM::EntityManagerInterface, entity_class : AORM::Entity.class) : AORM::RepositoryInterface#

Returns the repository of entity_class for em.

View source