Метод | Описание | |
---|---|---|
getName ( ) | ||
hydrate ( $data, $entity ) | ||
load ( Doctrine\DBAL\Query\QueryBuilder $query, Bolt\Storage\Mapping\ClassMetadata $metadata ) : void | For relations, the load method adds an extra ->addSelect() and ->leftJoin() to the query that fetches the related records from the join table in the same query as the content fetch. | |
persist ( Bolt\Storage\QuerySet $queries, $entity ) | ||
query ( Bolt\Storage\Query\QueryInterface $query, Bolt\Storage\Mapping\ClassMetadata $metadata ) : void | Relation fields can allow filters on the relations fetched. For now this is limited to the id field because of the possible complexity of fetching and filtering all the related data. |
Метод | Описание | |
---|---|---|
getExistingRelations ( mixed $entity ) : array | Get existing relationship records. | |
getInverseRelations ( mixed $entity ) : array | Get inverse relationship records. That is ones where the definition happened on the opposite record | |
getPlatformGroupConcat ( string $column, string $alias, Doctrine\DBAL\Query\QueryBuilder $query ) : string | Get platform specific group_concat token for provided column |
protected getExistingRelations ( mixed $entity ) : array | ||
$entity | mixed | |
Результат | array |
protected getInverseRelations ( mixed $entity ) : array | ||
$entity | mixed | |
Результат | array |
public persist ( Bolt\Storage\QuerySet $queries, $entity ) | ||
$queries | Bolt\Storage\QuerySet |