A shorthand library for RedBeanPHP
$type = R::_( 'type' ); // Dispense beans
$type = R::_( 'type', $id ); // Load beans
R::_( $bean ); // Store beans
/**
* Search for a project
*/
$project = R::$x->project->name($name)->find();
/**
* Actually, if you can't find one, make one with that data
*/
$project = R::$x->project->name($name)->find(true);