Created
November 28, 2011 21:42
-
-
Save alonecuzzo/1402206 to your computer and use it in GitHub Desktop.
mongoid wrapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(strcasecmp(get_class($id), "mongoid")) { | |
$_id = $_id->{'$id'}; | |
} | |
$this->data=Db::$tours->findOne(array('_id'=>new MongoId($_id))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment