$tables); $server = Doctrine_Resource_Server::getInstance($name, $config); $server->run($_REQUEST); } else { $url = 'http://localhost/~jwage/doctrine_trunk/playground/index.php?server'; $config = array('format' => 'json'); // Instantiate a new client $client = Doctrine_Resource_Client::getInstance($url, $config); $query = new Doctrine_Resource_Query(); $users = $query->from('User u, u.Phonenumber p, u.Email e, u.Address a')->execute(); print_r($users->toArray(true)); }