On Sunday, 9 March 2014 20:47:24 UTC+1, Roy Epperson wrote: > Just to clarify my understanding, any I create a new instance of a class > it needs to be persist($anInstance_of_a_class). But any time it is > retrieved via and $enitityManager->find*() or loaded when being loaded by > the found object, it is not need? >
That is correct. It took me some time before I understood that. As said: persist( ) is a bit confusing name. If you add another instance of a class to an already managed is it > automatically included it the UnitOfWork or do you have explicitly > persist($it)? > No, but you can cascade the persist( ), so a new entity that is added to an allready managed entity is "automatically" persisted. -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
