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_app_boot( ICanBoogie\Application\BootEvent $event
, ICanBoogie\Application $app
)
Define model provider.
public static
app_lazy_get_connections( ICanBoogie\Application $app
)
: ICanBoogie\ActiveRecord\ConnectionCollection
Returns a @{link ConnectionCollection} instance configured with
the activerecord_connections
config.
public static
app_lazy_get_models( ICanBoogie\Application $app
)
: ICanBoogie\ActiveRecord\ModelCollection
Returns a @{link ModelCollection} instance configured with
the activerecord_models
config.
public static
app_lazy_get_db( ICanBoogie\Application $app
)
: ICanBoogie\ActiveRecord\Connection
Getter for the "primary" database connection.