Property | Type | Description | |
---|---|---|---|
$_columns | array | A 2D array of column-mapping information, where the top-level key is the fully-namespaced model name, and the sub-arrays are column names. | |
$_dependencies | array | A recursive array of relation dependencies where key are relations and value are arrays with their relation dependencies | |
$_keyIndex | array | Precompute index of the main model primary key(s) which allow to find values directly in result data without the column name matching process. | |
$_relationships | array | Holds the relationships as returned via $this->_query->relationships(). | |
$_seen | array | Keeps a list of hydrated main record indexes values already seen. |
Method | Description | |
---|---|---|
_columnMap ( ) | ||
_hydrateRecord ( array $relations, string $primary, array $record, integer $min, integer $max, string $name ) : |
Hydrates a 2 dimensional PDO row Result array recursively. | |
_init ( ) : void | Initializes the record set and uses the database connection to get the column list contained in the query that created this object. | |
_keyIndex ( ) : array | Extracts the numerical index of the primary key in numerical indexed row data. | |
_mapRecord ( array $row ) : object | Converts a PDO Result array to a nested Record object. | |
_populate ( ) : mixed | Extracts the next item from the result resource and wraps it into a Record object. | |
_set ( $data = null, $offset = null, $options = [] ) |
protected _hydrateRecord ( array $relations, string $primary, array $record, integer $min, integer $max, string $name ) : |
||
$relations | array | The cascading with relation |
$primary | string | Model classname |
$record | array | Loaded Records |
$min | integer | |
$max | integer | |
$name | string | Alias name |
return | Returns a `Record` object as created by the model. |
protected _mapRecord ( array $row ) : object | ||
$row | array | 2 dimensional PDO `Result` array |
return | object | Returns a `Record` object |
protected array $_columns | ||
return | array |
protected array $_dependencies | ||
return | array |
protected array $_keyIndex | ||
return | array |
protected array $_relationships | ||
return | array |
protected array $_seen | ||
return | array |