PHP Class Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver

Since: 1.0
Author: Jonathan H. Wage ([email protected])
Author: Roman Borschel ([email protected])
Inheritance: implements Doctrine\ODM\MongoDB\Mapping\Driver\Driver
Show file Open project: doctrine/mongodb-odm Class Usage Examples

Protected Properties

Property Type Description
$entityAnnotationClasses

Public Methods

Method Description
create ( array | string $paths = [], Doctrine\Common\Annotations\Reader $reader = null ) : AnnotationDriver Factory method for the Annotation Driver
loadMetadataForClass ( $className, Doctrine\Common\Persistence\Mapping\ClassMetadata $class )
registerAnnotationClasses ( ) Registers annotation classes to the common registry.

Private Methods

Method Description
addIndex ( ClassMetadataInfo $class, $index, array $keys = [] )
setShardKey ( ClassMetadataInfo $class, Doctrine\ODM\MongoDB\Mapping\Annotations\ShardKey $shardKey )

Method Details

create() public static method

Factory method for the Annotation Driver
public static create ( array | string $paths = [], Doctrine\Common\Annotations\Reader $reader = null ) : AnnotationDriver
$paths array | string
$reader Doctrine\Common\Annotations\Reader
return AnnotationDriver

loadMetadataForClass() public method

public loadMetadataForClass ( $className, Doctrine\Common\Persistence\Mapping\ClassMetadata $class )
$class Doctrine\Common\Persistence\Mapping\ClassMetadata

registerAnnotationClasses() public static method

This method should be called when bootstrapping your application.
public static registerAnnotationClasses ( )

Property Details

$entityAnnotationClasses protected property

protected $entityAnnotationClasses