Wednesday 15 May 2013

mysql - Load a Doctrine persisted entity in async process -



mysql - Load a Doctrine persisted entity in async process -

my application creates pdf documents html code. set print configuration doctrine in mysql database , phone call commandline script calls symfony controller action printjob id.

now problem: got id right after persisting data, info isn't in mysql while first process still running.

how can tell doctrine, write info in database? tried tips like

$em->clear() // or $em->getconnection()->commit()

but not help or caused other problems.

try flush info flush like:

$em->flush()

you can flush single entity:

$em->flush($object)

mysql symfony2 asynchronous doctrine2 doctrine

No comments:

Post a Comment