프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 setClassName ( string $class_name ) | ||
$class_name | string |
public setRelationships ( array $relationships ) | ||
$relationships | array |
protected Index[],Bravo3\Orm\Mappers\Metadata $indices | ||
리턴 | Bravo3\Orm\Mappers\Metadata\Index[] |
protected array $property_map | ||
리턴 | array |
protected Relationship[],Bravo3\Orm\Mappers\Metadata $relationships | ||
리턴 |