<?

require_once("classes/Cart.class.php");

require_once(
"header.php");

  
// Getting the persistence manager
    
$persistence = new Persistence();
        
    
// We use phpersistence to get the cart object.
    
$currentCart $persistence->getById("Cart"1);
    
    
// setting an empty array for the products
    
$currentCart->products = array();
    
    
// updating
    
$persistence->saveOrUpdate($currentCart);
    
    
// Done! Logger::debug prints a dump of the object
    
Logger::debug($currentCart);
    
?>