php - Will Doctrine delete the object using remove() without calling flush()? -


in symfony2 application i've been running errors of type:

e_error: allowed memory size of * bytes exhausted (tried allocate 32 bytes)

that said, i'm in process of refactoring code, way i've found on how delete doctrine objects calling method remove().

according symfony's documentation:

the method remove() notifies doctrine want delete row database, doctrine won't until call flush()

my question is...

can call remove() in same fashion use unset remove object memory? long don't call flush()?

if not, what's best way "unset" objects using "symfony way" things ?

what looking telling doctrine stop referencing these objects php can free memory. not want remove database rows because php running out of memory ...

read how detach entities , what different entities states , means.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -