note 105396 added to class.mongoid
| From: | sfserver at gmail dot com | Date: | Mon, 15 Aug 2011 01:57:33 +0000 |
| Subject: | note 105396 added to class.mongoid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-182485@lists.php.net to get a copy of this message | ||
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()
----
Server IP: 69.147.83.197
Probable Submitter: 99.162.148.204
----
Manual Page -- http://www.php.net/manual/en/class.mongoid.php
Edit -- https://master.php.net/note/edit/105396
Del: integrated -- https://master.php.net/note/delete/105396/integrated
Del: useless -- https://master.php.net/note/delete/105396/useless
Del: bad code -- https://master.php.net/note/delete/105396/bad+code
Del: spam -- https://master.php.net/note/delete/105396/spam
Del: non-english -- https://master.php.net/note/delete/105396/non-english
Del: in docs -- https://master.php.net/note/delete/105396/in+docs
Del: other reasons-- https://master.php.net/note/delete/105396
Reject -- https://master.php.net/note/reject/105396
Search -- https://master.php.net/manage/user-notes.php