Edit Creating new block instead of updating the old one

Permalink
I have created a custom block to display out an image gallery, when I update the block it creates a new block instead of updating the old information my save method looks something like this am I missing anything ?

function save($data){
$this->saveImages($data);
parent::save($data);
}

 
elyon replied on at Permalink Reply
elyon
Have you looked at the source code for the Image block, or the Slideshow block? Seems like it would be a good reference point.
gerardguckian replied on at Permalink Reply
Hi Elyon, thanks for the reply, I have most of the block written, (the reason for custom block is we are using a CDN for our multimedia) My problem seems to be on the save after an edit (update-block) where it's creating a new block and losing all images associated with the old block
LucasAnderson replied on at Permalink Best Answer Reply
LucasAnderson