| @@ -177,7 +177,7 @@ discard block | ||
| 177 | 177 | * | 
| 178 | 178 | * @param string $selector | 
| 179 | 179 | * @param string|callable $className string class name or closure, which accept data and return string class name | 
| 180 | - * @return object representation of document with class, passed as argument | |
| 180 | + * @return null|Structure representation of document with class, passed as argument | |
| 181 | 181 | * @throws \Sokil\Mongo\Exception | 
| 182 | 182 | */ | 
| 183 | 183 | public function getObject($selector, $className = '\Sokil\Mongo\Structure') | 
| @@ -403,6 +403,9 @@ discard block | ||
| 403 | 403 | return (array) $value; | 
| 404 | 404 | } | 
| 405 | 405 | |
| 406 | + /** | |
| 407 | + * @param string $selector | |
| 408 | + */ | |
| 406 | 409 | public function unsetField($selector) | 
| 407 | 410 |      { | 
| 408 | 411 | // modify |