note 105396 deleted from class.mongoid by danbrown
| From: | danbrown@php.net | Date: | Mon, 15 Aug 2011 16:30:49 +0000 |
| Subject: | note 105396 deleted from class.mongoid by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-182493@lists.php.net to get a copy of this message | ||
Note Submitter: sfserver at gmail dot com
----
In response to alex dot turpin at gmail dot com, I think it's advisable to use the __toString()
method rather than directly accessing the string.
$id = $mongoid->__toString()