#1427: Database Manager returns closed Doctrine 2 EntityManager after PDO
Exception
-------------------------------+--------------------------------------------
 Reporter:  mr.hash@…          |       Owner:  david
     Type:  defect             |      Status:  new  
 Priority:  normal             |   Milestone:  1.0.7
Component:  database           |     Version:  1.0.6
 Severity:  normal             |    Keywords:       
Has_patch:  0                  |  
-------------------------------+--------------------------------------------

Comment(by david):

 Returning a new Entity Manager is not an option I think because the
 entities that are still in memory will be in an inconsistent state
 potentially. Making a new instance could seriously screw things up and
 that's not something a framework should do IMO.

 We could have a {{{resetEntityManager()}}} method or so on
 {{{AgaviDoctrine2ormDatabase}}}, what about that?

-- 
Ticket URL: <http://trac.agavi.org/ticket/1427#comment:3>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5



_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to