$factory : \Closure
Factory function to create instance of Simple Model, if any.
The Bean helper helps beans to access access the toolbox and FUSE models. This Bean Helper makes use of the facade to obtain a reference to the toolbox.
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.
If no model is returned (NULL), RedBeanPHP might ask again.
bean to obtain the corresponding model of