Свойство | Тип | Описание | |
---|---|---|---|
$class_name | string | ||
$columns | |||
$id_columns | |||
$indices | Bravo3\Orm\Mappers\Metadata\Index[] | ||
$property_map | array | Used to lookup the property that matches a getter/setter function | |
$relationships | |||
$sortables | |||
$table_name | string |
Метод | Описание | |
---|---|---|
__construct ( string $class_name, string $table_name ) | ||
addColumn ( |
Add a column | |
addIndex ( Bravo3\Orm\Mappers\Metadata\Index $index ) | Add an index | |
addRelationship ( |
Add a relationship | |
addSortable ( |
Add a sortable to the table metadata | |
getClassName ( ) : string | Get ClassName | |
getColumnByProperty ( $name ) : |
Get a column by its property name, or null if no such column exists | |
getColumns ( ) : |
Get columns | |
getIdColumns ( ) : |
Get all columns that are marked an as an ID field | |
getIndexByName ( string $name ) : Bravo3\Orm\Mappers\Metadata\Index | null | Get an index by its name, or null if no such index exists | |
getIndices ( ) : Bravo3\Orm\Mappers\Metadata\Index[] | Get indices | |
getPropertyFor ( string $fn ) : string | null | Get the name of the property matching the given function | |
getRelationshipByName ( string $name ) : |
Get a relationship by its name, or null if no such relationship exists | |
getRelationships ( ) : |
Get relationships | |
getSortableByName ( string $name ) : |
Get a table sortable by name | |
getSortables ( ) : |
Get Sortables | |
getTableName ( ) : string | Get the entity class name | |
setClassName ( string $class_name ) | Set the entity class name | |
setColumns ( array $columns ) | Set columns | |
setIndices ( array $indices ) | Set indices | |
setRelationships ( array $relationships ) | Set relationships | |
setSortables ( array $sortables ) | Set Sortables | |
setTableName ( string $table_name ) | Set TableName |
Метод | Описание | |
---|---|---|
generatePropertyMap ( ) | Generate a list of all getters/setters and what property they refer to | |
resetMaps ( ) | Clear the maps based on the columns |
public __construct ( string $class_name, string $table_name ) | ||
$class_name | string | |
$table_name | string |
public addIndex ( Bravo3\Orm\Mappers\Metadata\Index $index ) | ||
$index | Bravo3\Orm\Mappers\Metadata\Index |
public addRelationship ( |
||
$relationship |
public addSortable ( |
||
$sortable |
public getColumnByProperty ( $name ) : |
||
$name | ||
Результат |
public getIdColumns ( ) : |
||
Результат |
public getIndexByName ( string $name ) : Bravo3\Orm\Mappers\Metadata\Index | null | ||
$name | string | |
Результат | Bravo3\Orm\Mappers\Metadata\Index | null |
public getIndices ( ) : Bravo3\Orm\Mappers\Metadata\Index[] | ||
Результат | Bravo3\Orm\Mappers\Metadata\Index[] |
public getRelationshipByName ( string $name ) : |
||
$name | string | |
Результат |
public getRelationships ( ) : |
||
Результат |
public getSortableByName ( string $name ) : |
||
$name | string | |
Результат |
public getSortables ( ) : |
||
Результат |
public getTableName ( ) : string | ||
Результат | string |
public setClassName ( string $class_name ) | ||
$class_name | string |
public setRelationships ( array $relationships ) | ||
$relationships | array |
public setSortables ( array $sortables ) | ||
$sortables | array |
public setTableName ( string $table_name ) | ||
$table_name | string |
protected Column[],Bravo3\Orm\Mappers\Metadata $columns | ||
Результат |
protected Column[],Bravo3\Orm\Mappers\Metadata $id_columns | ||
Результат |
protected Index[],Bravo3\Orm\Mappers\Metadata $indices | ||
Результат | Bravo3\Orm\Mappers\Metadata\Index[] |
protected array $property_map | ||
Результат | array |
protected Relationship[],Bravo3\Orm\Mappers\Metadata $relationships | ||
Результат |
protected Sortable[],Bravo3\Orm\Mappers\Metadata $sortables | ||
Результат |