note 110338 added to class.mongoid
| From: | rmarscher | Date: | Fri, 12 Oct 2012 15:11:18 +0000 |
| Subject: | note 110338 added to class.mongoid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191271@lists.php.net to get a copy of this message | ||
You can also cast the id to a string rather than access the $id property to get a string
representation of the MongoId.
<?php
$stringId = (string) $mongoId;
?>
----
Server IP: 69.147.83.199
Probable Submitter: 173.70.199.77
----
Manual Page -- http://www.php.net/manual/en/class.mongoid.php
Edit -- https://master.php.net/note/edit/110338
Del: integrated -- https://master.php.net/note/delete/110338/integrated
Del: useless -- https://master.php.net/note/delete/110338/useless
Del: bad code -- https://master.php.net/note/delete/110338/bad+code
Del: spam -- https://master.php.net/note/delete/110338/spam
Del: non-english -- https://master.php.net/note/delete/110338/non-english
Del: in docs -- https://master.php.net/note/delete/110338/in+docs
Del: other reasons-- https://master.php.net/note/delete/110338
Reject -- https://master.php.net/note/reject/110338
Search -- https://master.php.net/manage/user-notes.php