PHPackages                             amoydavid/yii2lockable-query - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. amoydavid/yii2lockable-query

ActiveYii-extension[Database &amp; ORM](/categories/database)

amoydavid/yii2lockable-query
============================

MySQL InnoDB lock support(select for update) for ActiveRecord

v1.1.1(6y ago)102.5k↓50%2MITPHPPHP ~7.0

Since Jan 6Pushed 6y ago2 watchersCompare

[ Source](https://github.com/amoydavid/yii2lockable-query)[ Packagist](https://packagist.org/packages/amoydavid/yii2lockable-query)[ RSS](/packages/amoydavid-yii2lockable-query/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Yii2 Lockable ActiveQuery
-------------------------

[](#yii2-lockable-activequery)

This package allows you to use pessimistic locking (select for update) when you work with ActiveRecord Query.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist amoydavid/yii2lockable-query "*"

```

or add

```
"amoydavid/yii2lockable-query": "*"

```

to the `require` section of your composer.json.

Usage
-----

[](#usage)

Set schema map for database connection

```
