|
@@ -197,6 +197,7 @@ discard block |
|
|
block discarded – undo |
|
197
|
197
|
/** |
|
198
|
198
|
* Creates a new Document that operates on the given Mongo connection |
|
199
|
199
|
* and uses the given Configuration. |
|
|
200
|
+ * @param Configuration $config |
|
200
|
201
|
*/ |
|
201
|
202
|
public static function create(?Client $client = null, ?Configuration $config = null, ?EventManager $eventManager = null) : DocumentManager |
|
202
|
203
|
{ |
|
@@ -424,7 +425,7 @@ discard block |
|
|
block discarded – undo |
|
424
|
425
|
* NOTE: The persist operation always considers documents that are not yet known to |
|
425
|
426
|
* this DocumentManager as NEW. Do not pass detached documents to the persist operation. |
|
426
|
427
|
* |
|
427
|
|
- * @param object $document The instance to make managed and persistent. |
|
|
428
|
+ * @param \Documents\User $document The instance to make managed and persistent. |
|
428
|
429
|
* |
|
429
|
430
|
* @throws InvalidArgumentException When the given $document param is not an object. |
|
430
|
431
|
*/ |
Please login to merge, or discard this patch.