_persisterMock; } /* Mock API */ public function setEntityPersister($persister) { $this->_persisterMock = $persister; } /** * Mock factory method. * * @param unknown_type $conn * @param unknown_type $name * @param Doctrine_Configuration $config * @param Doctrine_EventManager $eventManager * @return unknown */ public static function create($conn, $name, Doctrine_Common_Configuration $config = null, Doctrine_Common_EventManager $eventManager = null) { if (is_null($config)) { $config = new Doctrine_Common_Configuration(); } if (is_null($eventManager)) { $eventManager = new Doctrine_Common_EventManager(); } return new Doctrine_EntityManagerMock($conn, $name, $config, $eventManager); } } ?>