/**
* Deletes object from database
*
* @return void
*/
public function delete()
{
$this->db->delete("custom_layouts", $this->db->quoteInto("id = ?", $this->model->getId()));
@unlink(PIMCORE_CUSTOMLAYOUT_DIRECTORY . "/custom_definition_" . $this->model->getId() . ".psf");
}