This is an outdated version of the Manual. Visit the NEW Manual

Fuse Custom Method

FUSE does not only support hooks like update() and delete(). You can also call a non-existent method on a bean and it will fire the corresponding method on the model.

class Model_Dog extends RedBean_SimpleModel {
            public function 
bark() {
$dog R::dispense('dog');
$dog->bark(); //echos 'Whaf!'

Learn how you can write Models that automatically connect to be beans using FUSE.


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