Fixed PHP-1062: MongoID doesn't ignore invalid id

https://jira.mongodb.org/browse/PHP-1062


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333309 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hannes Magnusson 2014-04-13 17:46:40 +00:00
parent f44f0a5c90
commit 94933fcf80

View file

@ -25,9 +25,7 @@
</term>
<listitem>
<para>
A string to use as the id. Must be 24 hexidecimal characters. If an
invalid string is passed to this constructor, the constructor will ignore
it and create a new id value.
A string to use as the id. Must be 24 hexidecimal characters.
</para>
</listitem>
</varlistentry>
@ -42,6 +40,28 @@
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>1.4.0</entry>
<entry>
An exception is thrown when passed invalid string
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>