Class Hooks
Methods summary
public static
synthesize_connections_config( array $fragments
)
: array
Synthesizes the activerecord_connections
config from activerecord#connections
fragments.
public static
synthesize_models_config( array $fragments
)
: array
Synthesizes the activerecord_models
config from activerecord#models
fragments.
public static
on_core_boot( ICanBoogie\Core\BootEvent $event
, ICanBoogie\Core $app
)
Patches the get_model()
helper to use the model collection bound to the application.
public static
core_lazy_get_connections( ICanBoogie\Core $app
)
: ICanBoogie\ActiveRecord\ConnectionCollection
Returns a @{link ConnectionCollection} instance configured with
the activerecord_connections
config.
public static
core_lazy_get_models( ICanBoogie\Core $app
)
: ICanBoogie\ActiveRecord\ModelCollection
Returns a @{link ModelCollection} instance configured with
the activerecord_models
config.