<?php
require_once("classes/User.class.php");
require_once("header.php");
/**
* We create a User object and save it
*/
/* create the object */
$user = new User();
$user->firstname = "Michael";
$user->name = "Haussmann";
$user->telephones = array("04 67 54 55 xx", "06 11 73 43 xx");
$user->mail = "michael@phpersistence.org";
// phpersistence does the job...
$persistence = new Persistence();
$persistence->save($user);
// done.
// See a id was created in the object.
Logger::debug($user);
?>