I don't have my system up and running to check but I thought i remember that orm->flush() writes the objects to the database and fills in the objects' ids. The php object cache is not purged until the application stops running, not because of the orm->flush. On Apr 30, 2014 6:34 AM, "Nima Sadjadi" <[email protected]> wrote:
> I need the id of new flushed record to return it as json in my api to a > 3rd party app. After doing flush, should I do find() then use getId() or is > there a better way to use getId() after flush without using find() > immediately after flush? > > -- > 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. > -- 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.
