PHPackages                             enterprisephp/doctrine-lock-bundle - 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. enterprisephp/doctrine-lock-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

enterprisephp/doctrine-lock-bundle
==================================

Lock object against delete, update events

v1.0(10y ago)112.7k1MITPHPPHP ^5.5.9|~7.0

Since Jan 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/EnterprisePHP/EPDoctrineLockBundle)[ Packagist](https://packagist.org/packages/enterprisephp/doctrine-lock-bundle)[ Docs](https://enterprisephp.github.io)[ RSS](/packages/enterprisephp-doctrine-lock-bundle/feed)WikiDiscussions master Synced yesterday

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

DoctrineLockBundle
==================

[](#doctrinelockbundle)

- Lock objects against insert, delete, update events
- Lock entities against delete, update events

[![SensioLabsInsight](https://camo.githubusercontent.com/8240ce02cb82c780cc89659bd0d2bddde0fe7d760aebc180fb6a5e42aaec4a54/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39653636653035642d666637392d346138622d396362302d6464353437663935633136322f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/9e66e05d-ff79-4a8b-9cb0-dd547f95c162)[![knpbundles.com](https://camo.githubusercontent.com/2db7d436ccd6ab23fd477fc44a6ea4f970a6b16a5954d0475abccdde91629060/687474703a2f2f6b6e7062756e646c65732e636f6d2f456e74657270726973655048502f4550446f637472696e654c6f636b42756e646c652f62616467652d73686f7274)](http://knpbundles.com/EnterprisePHP/EPDoctrineLockBundle)

### Related Links;###

[](#related-links)

-
-
- [https://www.wikiwand.com/en/Lock\_(database)](https://www.wikiwand.com/en/Lock_(database))
-

---

- Development steps can be followed from
- A basic test and logic command can be found in

Installation
============

[](#installation)

Step 1: Download the Bundle
---------------------------

[](#step-1-download-the-bundle)

Open a command console, go to your project directory and execute the following command to download the latest version of this bundle:

```
$ composer require enterprisephp/doctrine-lock-bundle "dev-master"
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Step 2: Enable the Bundle
-------------------------

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
