I'm a new user of RB and i am quite impressed.
My first efforts brought up a nagging little question.
I found I was using both functions R:load( 'bean_type', $id ) and R:store( $bean )
Why the asymmetry in the first arguments??
I am extending R to provide a store() function (and others) that can take either a string or a bean.
class RB extends R {
static function load($bean, $id) {
if (is_string($bean) return parent::load( $bean, $id );
$properties = $bean->getPropertiesAndType();
return parent::load( $properties[1], $id );
}
Am I courting disaster?
If not, why is this capability not already built in? It would be more consistent if functions like load and store
(and find, etc) had similar signatures.