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() {
echo 'Whaf!';
}
}
$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 © 2024 Gabor de Mooij and the RedBeanPHP community - Licensed New BSD/GPLv2