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

Development Doctrine_EntityManagerFactory

Doctrine EntityManagerFactory

The EntityManagerFactory is responsible for bootstrapping EntityManager instances as well as keeping track of all created EntityManagers and hard bindings to Entities.

Method Details

  • bindEntityToManager($entityName, $emName)

    Binds an Entity to a specific EntityManager.


  • setConfiguration(( ) $config, (Doctrine_Configuration) $eventManager)

    Sets the Configuration that is injected into all EntityManagers (and their Connections) that are created by this factory.


  • releaseAllBindings()


  • releaseAllManagers()

    Releases all EntityManagers.


  • (EntityManager) getManager($entityName = null)

    Gets the EntityManager that is responsible for the Entity.

    Static method, so that ActiveEntities can look up the right EntityManager without having a reference to the factory at hand.

    throws Doctrine_EntityManager_Exception If a suitable manager can not be found.


  • __construct()

    Constructor.

    Creates a new EntityManagerFactory.


  • setEventManager(( ) $eventManager)

    Sets the EventManager that is injected into all EntityManagers (and their Connections) that are created by this factory.


  • unbindAllManagers()

    Clears all bindings between Entities and EntityManagers.


  • (unknown) createEntityManager((unknown_type) $connParams, (unknown_type) $name = null)

    Creates an EntityManager.


  • (unknown) getEntityManager((unknown_type) $entityName = null)

    Gets the EntityManager that is responsible for the Entity.


  • releaseEntityManager($name)


Comments (0) [ add comment ]

 No Comments

Add Comment

Add New Comment
Please enter follow the doctrine