/** * Return an instance of the related model class * @return \ZeDb\ModelInterface */ protected function getModel() { return Module::getDatabaseManager()->get(get_called_class()); }
/** * Get the registry instance that contains all the modules * @return \ZeDb\DatabaseManager */ public function getDatabaseManager() { return ZeDb::getDatabaseManager(); }