Hi, All --
Given a page that I had just created from a page type, I was trying to find a (content) block and edit it with the "starter" text.
I spent a few hours trying to figure this out last night, and (surprisingly) couldn't find any help on the forums. Thought I'd document it here.
I was having tons of problems with the fact that the block is set up as an "alias" (to the "default" block held on the page type) and trying to de-alias the block. Then I realized I was running into caching issues, which made finding the solution harder (I assumed you get the block's controller instance in order to ->save(), but don't!).
Without further adieu:
$nb = $this->contentBlockObj->duplicate($this->pageObj); //pageObj is the same page the existing block is on... you can probably get it from the Block, but I had it stored for other reasons
$nb->update(array('content' => $this->descr));
$this->contentBlockObj = $nb;