Guest User

Untitled

a guest
Dec 7th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. sfContext::createInstance($configuration);
  2. sfContext::getInstance()->getDatabaseConnection('doctrine')->setAttribute(Doctrine_Core::ATTR_AUTO_FREE_QUERY_OBJECTS, true );
  3.  
  4. // Do the doctrine queries and fetch data
  5.  
  6. sfContext::getInstance()->getDatabaseManager()->shutdown();
  7. gc_collect_cycles();
  8.  
  9. // Do the non-database operation
Add Comment
Please, Sign In to add comment