$factory
$factory : callable|NULL
Factory function to create instance of Simple Model, if any.
Dynamic Bean Helper.
The dynamic bean helper allows you to use differently namespaced classes for models per database connection.
getToolbox() : \RedBeanPHP\ToolBox
Returns a toolbox to empower the bean.
This allows beans to perform OODB operations by themselves, as such the bean is a proxy for OODB. This allows beans to implement their magic getters and setters and return lists.
getModelForBean(\RedBeanPHP\OODBBean $bean) : \RedBeanPHP\SimpleModel|\RedBeanPHP\CustomModel|NULL
Given a certain bean this method will return the corresponding model.
\RedBeanPHP\OODBBean | $bean | bean to obtain the corresponding model of |
resolveModel(string $prefix, string $model, \RedBeanPHP\OODBBean $bean) : \RedBeanPHP\BeanHelper\SimpleModel|\RedBeanPHP\BeanHelper\CustomModel|NULL
Resolves the model associated with the bean using the model name (type), the prefix and the bean.
string | $prefix | Prefix to use for resolution |
string | $model | Type name |
\RedBeanPHP\OODBBean | $bean | Bean to resolve model for |