INTERNAL:
Creates a document. Used for reconstitution of documents during hydration.
public getOrCreateDocument ( string $className, array $data, array &$hints = [], object $document = null ) : object | ||
$className | string | The name of the document class. |
$data | array | The data for the document. |
$hints | array | Any hints to account for during reconstitution/lookup of the document. |
$document | object | The document to be hydrated into in case of creation |
Результат | object | The document instance. |