Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: c79ad79cb5
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (9 sloc) 0.291 kB
<?php
//Initialise Morph_Storage passing in the appropriate database
$mongo = new Mongo();
Morph_Storage::init($mongo->selectDb('myDB'));
//Fetches and instance of User by its id
$user = new User();
$user = $user->loadById(1234);
//do something with it's properties
echo $user->firstName;
Jump to Line
Something went wrong with that request. Please try again.