Method | Description | |
---|---|---|
__construct ( Blast\Orm\Entity\ProviderInterface $provider ) | ||
extract ( ) : array | Extract values from given object | |
hydrate ( array $data = [], string $option = self::HYDRATE_AUTO ) : mixed | ||
isCollectable ( $data ) : mixed |
Method | Description | |
---|---|---|
addRelationsToData ( $data, $entity ) : mixed | Add relations to data | |
camelizeKeys ( $data ) : array | Convert keys to camel case | |
determineOption ( $data, $option ) : string | ||
getArraySerizableHydrator ( ) : Zend\Hydrator\ArraySerializable | ||
getClassMethodsHydrator ( ) : Zend\Hydrator\ClassMethods | ||
getObjectPropertyHydrator ( ) : Zend\Hydrator\ObjectProperty | ||
hydrateCollection ( $data ) : object | SplStack | ||
hydrateEntity ( $data ) : array | ArrayObject | object | stdClass | Hydrates data to an entity | |
underscorizeKeys ( $data ) : array | Convert keys to underscore |
public __construct ( Blast\Orm\Entity\ProviderInterface $provider ) | ||
$provider | Blast\Orm\Entity\ProviderInterface |
protected addRelationsToData ( $data, $entity ) : mixed | ||
$data | ||
$entity | ||
return | mixed |
protected camelizeKeys ( $data ) : array | ||
$data | ||
return | array |
protected determineOption ( $data, $option ) : string | ||
$data | ||
$option | ||
return | string |
protected getArraySerizableHydrator ( ) : Zend\Hydrator\ArraySerializable | ||
return | Zend\Hydrator\ArraySerializable |
protected getClassMethodsHydrator ( ) : Zend\Hydrator\ClassMethods | ||
return | Zend\Hydrator\ClassMethods |
protected getObjectPropertyHydrator ( ) : Zend\Hydrator\ObjectProperty | ||
return | Zend\Hydrator\ObjectProperty |
protected hydrateCollection ( $data ) : object | SplStack | ||
$data | ||
return | object | SplStack |
protected hydrateEntity ( $data ) : array | ArrayObject | object | stdClass | ||
$data | ||
return | array | ArrayObject | object | stdClass |
protected underscorizeKeys ( $data ) : array | ||
$data | ||
return | array |