samples/PhotoAlbum/lib/rb.php
public function trash( $bean ) {
		$type = $bean->getMeta('type');
		$id = $bean->id;
		if (isset($this->cache[$type][$id])) unset($this->cache[$type][$id]);
		return parent::trash($bean);
	}
public function trash( $bean ) {
		$type = $bean->getMeta('type');
		$id = $bean->id;
		if (isset($this->cache[$type][$id])) unset($this->cache[$type][$id]);
		return parent::trash($bean);
	}
public function trash ( $ bean ) { $ type = $ bean -> getMeta ( 'type' ) ; $ id = $ bean -> id ; if ( isset ( $ this -> cache [ $ type ] [ $ id ] ) ) unset ( $ this -> cache [ $ type ] [ $ id ] ) ; return parent :: trash ( $ bean ) ; }
Trashes a RedBean OODBBean and removes it from cache.

@param RedBean_OODBBean $bean bean
@return mixed
Trashes a RedBean OODBBean and removes it from cache .