Method | Description | |
---|---|---|
assemble ( array | object $document, |
Builds an object from the provided data. |
Method | Description | |
---|---|---|
assembleDocumentsRecursively ( mixed $value, string $schemaClass ) : mixed | Assembly multiple documents for the given $schemaClass recursively. | |
morphingTime ( mixed $entity ) : mixed | Returns the return of polymorph method of the given entity if available. | |
prepareOriginalAttributes ( mixed $entity ) : mixed | Stores original attributes from Entity if needed. |
protected morphingTime ( mixed $entity ) : mixed | ||
$entity | mixed | The entity that may or may not have a polymorph method. |
return | mixed | The result of $entity->polymorph or the $entity itself. |
protected prepareOriginalAttributes ( mixed $entity ) : mixed | ||
$entity | mixed | The entity that may have the attributes stored. |
return | mixed | The entity with original attributes. |