Debug

The RedBeanPHP debugger displays all queries on screen. Activate the debugger using the R::debug() function:


    R
::debug(true);

To turn the debugger off:


    R
::debug(false);

Tainted

Sometimes its useful to know whether a bean has been modified or not. The current state of the bean is stored in a Meta property called tainted. To get the state of the bean use:


    $bean
->getMeta('tainted');

If the bean has been modified this will return boolean TRUE, otherwise it will return FALSE.


 
 

RedBeanPHP Easy ORM for PHP © 2013 Gabor de Mooij and the RedBeanPHP community - Licensed New BSD/GPLv2