Pt_BR En Ja De Fr 
You are currently viewing the Development branch api documentation. Switch to 1.0 or 1.1

Development Doctrine_ClassMetadata_Factory

Doctrine ClassMetadata Factory

The metadata factory is used to create ClassMetadata objects that contain all the metadata of a class.

Method Summary

Returns Name Description
Doctrine_Metadata getMetadataFor
_addInheritedFields
_addInheritedRelations
_initIdentifier
_loadClasses
_loadMetadata
__construct Creates a new factory instance that uses the given connection and metadata driver implementations.

Method Details

  • $className The name of the class.

    (Doctrine_Metadata) getMetadataFor($className)

    Returns the metadata object for a class.


  • _addInheritedFields($subClass, $parentClass)


  • _addInheritedRelations($subClass, $parentClass)


  • $class The metadata container of the class in question.

    _initIdentifier(( ) $class)

    Initializes the class identifier(s)/primary key(s).


  • $name The name of the class for which the metadata should get loaded.
    $tables The metadata collection to which the loaded metadata is added.

    _loadClasses($name, [[[amp]]]$classes, $tables)

    Loads the metadata of the class in question and all it's ancestors whose metadata is still not loaded.


  • $class The container for the metadata.
    $name The name of the class for which the metadata will be loaded.

    _loadMetadata(( ) $class, $name)

    Loads the metadata of a specified class.


  • $em The connection to use.
    $driver The metadata driver to use.

    __construct(( ) $em, ($driver) $driver)

    Constructor.

    Creates a new factory instance that uses the given connection and metadata driver implementations.


Comments (0) [ add comment ]

 No Comments

Add Comment

Add New Comment
Please enter follow the doctrine