Property | Type | Description | |
---|---|---|---|
$entities |
Method | Description | |
---|---|---|
__construct ( array $maps = [] ) | ||
getClassFromTable ( string $table_name ) : string | Get an entities full class name from its table name | |
getEntityMetadata ( string | object $entity ) : |
Get the metadata for an entity, including column information | |
registerMap ( string $fn ) | Register a new map file |
Method | Description | |
---|---|---|
getNode ( array $map, string $node, boolean $required = true, mixed $default = null ) : mixed | Get a node from the metadata map | |
getParser ( ) : Symfony\Component\Yaml\Yaml | Lazy-load the YAML parser | |
loadMap ( string $fn ) | Parse a map file, loading metadata from YAML | |
processMaps ( ) | Process all unprocessed map files |
Method | Description | |
---|---|---|
createColumn ( string $property, array $column_schema ) : |
Create a column from schema | |
createRelationship ( string $property, array $column_schema ) : |
Create a relationship from schema | |
createSortables ( array $column_schema ) : |
Create a set of sortables |
public getClassFromTable ( string $table_name ) : string | ||
$table_name | string | |
return | string |
public getEntityMetadata ( string | object $entity ) : |
||
$entity | string | object | Entity or class name of the entity |
return |
protected getParser ( ) : Symfony\Component\Yaml\Yaml | ||
return | Symfony\Component\Yaml\Yaml |