PHP Class FactoryGirl\Provider\Doctrine\EntityDef

Afficher le fichier Open project: breerly/factory-girl-php Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( EntityManager $em, $name, $type, array $fieldDefs, array $config )
getConfig ( ) : array Returns the extra configuration array of the entity definition.
getEntityMetadata ( ) : Doctrine\ORM\Mapping\ClassMetadata Returns the Doctrine metadata for the entity to be created.
getEntityType ( ) : string Returns the fully qualified name of the entity class.
getFieldDefs ( ) Returns the fielde definition callbacks.
getName ( ) : string Returns the name of the entity definition.

Private Methods

Méthode Description
defaultDefsFromMetadata ( )
ensureInvokable ( $f )
normalizeFieldDef ( $def )
readFieldDefs ( array $params )

Method Details

__construct() public méthode

public __construct ( EntityManager $em, $name, $type, array $fieldDefs, array $config )
$em Doctrine\ORM\EntityManager
$fieldDefs array
$config array

getConfig() public méthode

Returns the extra configuration array of the entity definition.
public getConfig ( ) : array
Résultat array

getEntityMetadata() public méthode

Returns the Doctrine metadata for the entity to be created.
public getEntityMetadata ( ) : Doctrine\ORM\Mapping\ClassMetadata
Résultat Doctrine\ORM\Mapping\ClassMetadata

getEntityType() public méthode

Returns the fully qualified name of the entity class.
public getEntityType ( ) : string
Résultat string

getFieldDefs() public méthode

Returns the fielde definition callbacks.
public getFieldDefs ( )

getName() public méthode

Returns the name of the entity definition.
public getName ( ) : string
Résultat string