<?php

require dirname(dirname(dirname(__FILE__))) . '/bootstrap.php';
$object = new Slideshow($_POST['ID']);
foreach ($_POST as $key => $val) {
    $object->set($key, $val);
}
$object->persist();