PHPackages                             donkeycode/propel-lockable-behavior - 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. donkeycode/propel-lockable-behavior

ActiveLibrary[Database &amp; ORM](/categories/database)

donkeycode/propel-lockable-behavior
===================================

Propel behavior that helps you to set a lock per fields

114.6kPHP

Since Oct 2Pushed 10y ago4 watchersCompare

[ Source](https://github.com/donkeycode/propel-lockable-behavior)[ Packagist](https://packagist.org/packages/donkeycode/propel-lockable-behavior)[ RSS](/packages/donkeycode-propel-lockable-behavior/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

LockableBehavior
================

[](#lockablebehavior)

[![Build Status](https://camo.githubusercontent.com/c81040d1a80ec20122a79bfd32b0b62015510f902dccfd998da4c72ddea726ce/68747470733a2f2f7472617669732d63692e6f72672f646f6e6b6579636f64652f70726f70656c2d6c6f636b61626c652d6265686176696f722e737667)](https://travis-ci.org/donkeycode/propel-lockable-behavior)

The **LockableBehavior** behavior allows you to mark columns edited and choose forceUpdate or not.

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

[](#installation)

Cherry-pick the `LockableBehavior.php` file is `src/`, put it somewhere, then add the following line to your `propel.ini` or `build.properties` configuration file:

```
propel.behavior.visibility.class = path.to.LockableBehavior
```

Usage
-----

[](#usage)

Just add the following XML tag in your `schema.xml` file:

```

```

The **lockable** behavior requires four parameters to work:

- `apply_to`: the list of column to apply the visibility behavior

In php :
--------

[](#in-php-)

- `$post->activateLocker()` set true to locker fields at `preSave`
- `$post->activateLockCheck()` revert locked fields at `preSave` to only persist not locked fields

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/52d4597d48c6639975152add5a1dccb0533f51f811cd124fc01a34938bbbf197?d=identicon)[cedriclombardot](/maintainers/cedriclombardot)

---

Top Contributors

[![cedriclombardot](https://avatars.githubusercontent.com/u/651484?v=4)](https://github.com/cedriclombardot "cedriclombardot (9 commits)")

### Embed Badge

![Health badge](/badges/donkeycode-propel-lockable-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/donkeycode-propel-lockable-behavior/health.svg)](https://phpackages.com/packages/donkeycode-propel-lockable-behavior)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
