<?php
require_once("classes/User.class.php");
require_once("header.php");
/**
* As in the previous script, we usee the "query by example" or QBE technique.
* We create an example "User" object, populating its "telephones" member with a phone number.
* All the users having this number in their "telephones" array are returned in an array on User objects.
*
*/
$example = new User();
$example->telephones = "06 11 73 43 xx";
// lets phpersistence do the job...
$persistence = new Persistence();
$user = $persistence->findByExample($example);
// done!
// Logger::debug prints a dump of the object
Logger::debug($user);
?>