프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$mapping |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$em | |||
$platform |
메소드 | 설명 | |
---|---|---|
__construct ( array $mapping = [], |
||
get ( $entity ) : mixed | Reads the current value of the field from an entity and returns value | |
getMappingAttribute ( ) : string | Gets the entity attribute name to be used for reading / persisting | |
getName ( ) | ||
getPlatform ( ) : Doctrine\DBAL\Platforms\AbstractPlatform | Returns the platform | |
getStorageOptions ( ) | ||
getStorageType ( ) : Doctrine\DBAL\Types\Type | Returns the name of the Doctrine storage type to use for a field. | |
getTemplate ( ) | Provides a template that is able to render the field | |
hydrate ( $data, $entity ) | ||
load ( Doctrine\DBAL\Query\QueryBuilder $query, Bolt\Storage\Mapping\ClassMetadata $metadata ) | ||
persist ( Bolt\Storage\QuerySet $queries, $entity ) | ||
present ( $entity ) | ||
query ( Bolt\Storage\Query\QueryInterface $query, Bolt\Storage\Mapping\ClassMetadata $metadata ) | ||
set ( object $entity, mixed $value ) | The set method takes a raw php value and performs the conversion to the entity value. | |
setPlatform ( Doctrine\DBAL\Platforms\AbstractPlatform $platform ) | Sets the current platform to an instance of AbstractPlatform |
메소드 | 설명 | |
---|---|---|
isJson ( mixed $value ) : boolean | Check if a value is a JSON string. | |
normalizeData ( $data, $field ) | ||
rewriteQueryFilterParameters ( |
This method does an in-place modification of a generic contenttype.field query to the format actually used in the raw sql category. For instance a simple query might say entries.tags = 'movies' but now we are in the context of entries the actual SQL fragment needs to be tags.slug = 'movies'. We don't know this until we drill down to the individual field types so this rewrites the SQL fragment just before the query gets sent. |
public __construct ( array $mapping = [], |
||
$mapping | array | |
$em |
public getMappingAttribute ( ) : string | ||
리턴 | string |
public getPlatform ( ) : Doctrine\DBAL\Platforms\AbstractPlatform | ||
리턴 | Doctrine\DBAL\Platforms\AbstractPlatform |
public getStorageType ( ) : Doctrine\DBAL\Types\Type | ||
리턴 | Doctrine\DBAL\Types\Type |
public load ( Doctrine\DBAL\Query\QueryBuilder $query, Bolt\Storage\Mapping\ClassMetadata $metadata ) | ||
$query | Doctrine\DBAL\Query\QueryBuilder | |
$metadata | Bolt\Storage\Mapping\ClassMetadata |
public persist ( Bolt\Storage\QuerySet $queries, $entity ) | ||
$queries | Bolt\Storage\QuerySet |
public query ( Bolt\Storage\Query\QueryInterface $query, Bolt\Storage\Mapping\ClassMetadata $metadata ) | ||
$query | Bolt\Storage\Query\QueryInterface | |
$metadata | Bolt\Storage\Mapping\ClassMetadata |
protected rewriteQueryFilterParameters ( |
||
$filter | ||
$query | Bolt\Storage\Query\QueryInterface | |
$field | ||
$column |
public setPlatform ( Doctrine\DBAL\Platforms\AbstractPlatform $platform ) | ||
$platform | Doctrine\DBAL\Platforms\AbstractPlatform |