Hi,
today I tried to do some database interactions in sfI18N::__destruct() (saving
untraslated strings into the database). I developed this feature on
postgresql, whithout noticing any problem, but after on Oracle through oracle
adapter I found, that Doctrine_Adapter_Oracle was destructed before the and I
wasn't be able to establish new connection to do some queries.
I think, that there is no reason to do manual rollbacks and disconnecting from
the database, because as PHP oracle underground manual says:
"At the end of each script, connections opened with oci_connect() or
oci_new_connect() are automatically closed. Any uncommitted data is rolled
back."
So it will be always done so without the necessity of destructing it in the
adapter and we can safely remove the whole __destruct() function from the
adapter.
Any comments?
~
Miloslav Kmeť