Метод |
Описание |
|
__construct ( MetadataDriver $metadata, FieldManager $fieldManager ) |
Constructor. |
|
create ( array | object $data, object | null $entity = null ) : object |
Creates a new entity object. |
|
createFromDatabaseValues ( array $data, object | null $entity = null ) : object |
Performs database to PHP transforms before creating new entity. |
|
getClassMetadata ( ) : Bolt\Storage\Mapping\ClassMetadata |
Gets the metadata instance. |
|
getEntity ( object | null $entity = null ) : object |
Returns a new empty entity class. |
|
getFields ( ) : array |
Uses either the class default or the supplied ClassMetadata to return
a list of fields for this entity. |
|
getHydratedValue ( $value, $field, null $subField = null ) : Bolt\Storage\Entity\FieldValue | boolean |
|
|
refresh ( object | null $entity ) |
Refresh an entities values. |
|
setClass ( string $class ) |
Sets the entity class that will be built. |
|
setClassMetadata ( Bolt\Storage\Mapping\ClassMetadata $classMetadata ) |
Sets the metadata for the class to be built. |
|
setTransformer ( string $fieldTypeClass, callable $handler ) |
Adds a transformer for a specific field type. |
|