Doctrine
    
            
            in package
            
        
    
            
            implements
                            AdapterInterface                    
    
    
        
        
    
Interfaces, Classes, Traits and Enums
- AdapterInterface
 
Table of Contents
- HYDRATE_OBJECT = 3
 - Hydrates an object graph. This is the default behavior.
 - RESULT_ARRAY = 2
 - Use getArrayResult to get results.
 - RESULT_SCALAR = 1
 - Use getScalarResult to get results.
 - $doctrine : QueryBuilder
 - Doctrine instance of QueryBuilder.
 - $resultType : int
 - Result type to use.
 - $rowCount : int
 - Total item count.
 - __construct() : mixed
 - count() : int
 - Returns the total number of rows in the result set.
 - getItems() : mixed
 - {@inheritdoc}
 - selectCount() : int
 - Count total rows.
 
Constants
HYDRATE_OBJECT
Hydrates an object graph. This is the default behavior.
    public
        mixed
    HYDRATE_OBJECT
    = 3
    
        
    
RESULT_ARRAY
Use getArrayResult to get results.
    public
        mixed
    RESULT_ARRAY
    = 2
    
        
    
RESULT_SCALAR
Use getScalarResult to get results.
    public
        mixed
    RESULT_SCALAR
    = 1
    
        
    
Properties
$doctrine
Doctrine instance of QueryBuilder.
    protected
        QueryBuilder
    $doctrine
    
    
    
    
$resultType
Result type to use.
    protected
        int
    $resultType
    
    
    
    
$rowCount
Total item count.
    protected
        int
    $rowCount
    
    
    
    
Methods
__construct()
    public
                    __construct(QueryBuilder $query[, int $resultType = self::RESULT_ARRAY ]) : mixed
        
        Parameters
- $query : QueryBuilder
 - $resultType : int = self::RESULT_ARRAY
 
Return values
mixed —count()
Returns the total number of rows in the result set.
    public
                    count() : int
    
    
    
        Return values
int —getItems()
{@inheritdoc}
    public
                    getItems(mixed $offset, mixed $itemCountPerPage) : mixed
    
        Parameters
- $offset : mixed
 - $itemCountPerPage : mixed
 
Return values
mixed —selectCount()
Count total rows.
    private
                    selectCount() : int