Свойство | Тип | Описание | |
---|---|---|---|
$entityName | string | |
||
$fieldAliasMappings | array | ||
$fieldDefaultValues | array | ||
$fields | array | ||
$fieldsDefined | array | ||
$mapper | |||
$primaryKeyField | |||
$relations | array | ||
$scopes | array | ||
$table | |||
$tableOptions |
Метод | Описание | |
---|---|---|
__construct ( string | |
Entity to get information for | |
fieldAliasMappings ( ) : array | Field alias mappings (used for lookup) | |
fieldDefaultValues ( ) : array | Get field default values as defined in class field definitions | |
fieldExists ( string $field ) : boolean | Check if field exists in defined fields | |
fieldKeys ( ) : array | Groups field keys into names arrays of fields with key name as index | |
fieldType ( string $field ) : mixed | Return field type | |
fields ( ) : array | Get formatted fields with all necessary array keys and values. | |
fieldsDefined ( ) : array | Get field information exactly how it is defined in the class | |
mapper ( ) : string | Get name of custom mapper for given entity class | |
primaryKeyField ( ) | Get value of primary key for given row result | |
relations ( ) | Get defined relations | |
resetFields ( ) | ||
table ( ) : string | Get name of table for given entity class | |
tableOptions ( ) : string | Get table options for given entity class |
Метод | Описание | |
---|---|---|
computeIndexName ( string $table, string | boolean $indexConfiguration ) : string | boolean | Attempt to generate a user-suffixed index name |
public __construct ( string | |
||
$entityName | string | |
public fieldAliasMappings ( ) : array | ||
Результат | array | Field alias => actual column name |
public fieldDefaultValues ( ) : array | ||
Результат | array | Array of field key => value pairs |
public fieldExists ( string $field ) : boolean | ||
$field | string | Field name to check for existence |
Результат | boolean |
public fieldsDefined ( ) : array | ||
Результат | array | Array of field key => value pairs |
public primaryKeyField ( ) |
public tableOptions ( ) : string | ||
Результат | string |
protected string|Entity,Spot $entityName | ||
Результат | string | |