Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request inTransaction #83

Closed
moreamazingnick opened this issue Mar 14, 2024 · 2 comments
Closed

Feature Request inTransaction #83

moreamazingnick opened this issue Mar 14, 2024 · 2 comments

Comments

@moreamazingnick
Copy link

moreamazingnick commented Mar 14, 2024

It would be really nice to have a function inTransaction in Connection.php for more complex structures. PDO supports this

    /**
     * Begin a transaction
     *
     * @return bool Whether the a transaction was previously requested
     */
    public function beginTransaction()
    {
        if ($this->pdo === null) {
               return false;
        }else{
               return $this->pdo->inTransaction();
        }

    }

thanks in advance and

best Regards
Nicolas

@nilmerg
Copy link
Member

nilmerg commented Mar 14, 2024

This already works, just call $connection->inTransaction(). Though, this is also subject to change, see #81.

@nilmerg
Copy link
Member

nilmerg commented Mar 14, 2024

Duplicate of #81

@nilmerg nilmerg marked this as a duplicate of #81 Mar 14, 2024
@nilmerg nilmerg closed this as not planned Won't fix, can't repro, duplicate, stale Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants