PHP Class Bravo3\Orm\Mappers\Annotation\AnnotationMapper

Inheritance: implements Bravo3\Orm\Mappers\MapperInterface
Datei anzeigen Open project: bravo3/orm Class Usage Examples

Protected Properties

Property Type Description
$metadata_cache Bravo3\Orm\Mappers\Metadata\Entity[]

Public Methods

Method Description
__construct ( array $paths = [] )
addAnnotationPath ( string $namespace, string $path ) Adds a path to the annotation namespace autoloader
getEntityMetadata ( string | object $entity ) : Entity Get the metadata for an entity, including column information

Method Details

__construct() public method

public __construct ( array $paths = [] )
$paths array

addAnnotationPath() public method

Adds a path to the annotation namespace autoloader
public addAnnotationPath ( string $namespace, string $path )
$namespace string Base namespace (eg "Foo\Bar")
$path string Path to PSR-0 root folder (eg __DIR__."/../src/")

getEntityMetadata() public method

Get the metadata for an entity, including column information
public getEntityMetadata ( string | object $entity ) : Entity
$entity string | object Entity or class name of the entity
return Bravo3\Orm\Mappers\Metadata\Entity

Property Details

$metadata_cache protected_oe property

protected Entity[],Bravo3\Orm\Mappers\Metadata $metadata_cache
return Bravo3\Orm\Mappers\Metadata\Entity[]