Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7773925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:14:59+00:00 2026-06-01T17:14:59+00:00

Does there is way to set isolation level independently to concrete database driver in

  • 0

Does there is way to set isolation level independently to concrete database driver in php?
Looks like there is no.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T17:15:00+00:00Added an answer on June 1, 2026 at 5:15 pm

    Unfortunately, I’m not sure there is a way to do such a thing with Zend_Db. The manual says that setTransactionIsolationLevel() can be used only with the Microsoft SQL Server adapter.

    You can use setTransactionIsolationLevel() to set isolation level for
    current connection. The value can be SQLSRV_TXN_READ_UNCOMMITTED,
    SQLSRV_TXN_READ_COMMITTED, SQLSRV_TXN_REPEATABLE_READ,
    SQLSRV_TXN_SNAPSHOT or SQLSRV_TXN_SERIALIZABLE.

    It doesn’t seem that the Zend_Db API implements a way to manage transaction isolation levels, the only way would be to write your own SQL statements and execute them according the the PDO driver you are using.

    I would recommend you instead to use a better database abstraction layer such as Doctrine (really powerful). Then you would be able to do it this way:

    The Doctrine\DBAL\Connection also has methods to control the
    transaction isolation level as supported by the underlying database.
    Connection#setTransactionIsolation($level) and
    Connection#getTransactionIsolation() can be used for that purpose. The
    possible isolation levels are represented by the following constants:

    <?php
    Connection::TRANSACTION_READ_UNCOMMITTED
    Connection::TRANSACTION_READ_COMMITTED
    Connection::TRANSACTION_REPEATABLE_READ
    Connection::TRANSACTION_SERIALIZABLE
    

    See this question to know how to integrate Doctrine with ZF and this page for more information about transaction management using Doctrine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to use form fields that does not correspond to database
is there a way in Excel to have a formula that does something like
is there any way to dock two windows(like Winamp does with panels), but one
Is there a way to set up cycle plugin with a crossfade that does
Is there a way to set the background image of a SurfaceView? Does it
Does there exist any way in .Net to check before opening if a file
Does there exist a way to catch a write into write-protected page? I plan
does anyone know is there a way to implement Windows Live ID authentication into
Does anyone know if there is way to get the sender and the eventarguments
Does anyone know is there a way to implement Windows Live ID authentication into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.