samples/PhotoAlbum/lib/rb.php
private function prepareEmbeddedBean($v) {
		if (!$v->id || $v->getMeta('tainted')) {
			$this->store($v);
		}
		return $v->id;
	}
private function prepareEmbeddedBean($v) {
		if (!$v->id || $v->getMeta('tainted')) {
			$this->store($v);
		}
		return $v->id;
	}
private function prepareEmbeddedBean ( $ v ) { if ( ! $ v -> id || $ v -> getMeta ( 'tainted' ) ) { $ this -> store ( $ v ) ; } return $ v -> id ; }
Processes an embedded bean. First the bean gets unboxed if possible.
Then, the bean is stored if needed and finally the ID of the bean
will be returned.

@param RedBean_OODBBean|Model $v the bean or model

@return  integer $id
Processes an embedded bean . First the bean gets unboxed if possible . Then the bean is stored if needed and finally the ID of the bean will be returned .