{"id":19936746,"url":"https://github.com/donkeycode/propel-lockable-behavior","last_synced_at":"2025-11-26T02:05:31.136Z","repository":{"id":36004663,"uuid":"40297764","full_name":"donkeycode/propel-lockable-behavior","owner":"donkeycode","description":"Allows you to mark columns edited as lock and choose forceUpdate or not","archived":false,"fork":false,"pushed_at":"2015-10-02T13:44:00.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-12T11:45:58.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/donkeycode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-06T09:56:00.000Z","updated_at":"2015-08-06T12:19:17.000Z","dependencies_parsed_at":"2022-08-17T22:05:10.887Z","dependency_job_id":null,"html_url":"https://github.com/donkeycode/propel-lockable-behavior","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeycode%2Fpropel-lockable-behavior","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeycode%2Fpropel-lockable-behavior/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeycode%2Fpropel-lockable-behavior/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeycode%2Fpropel-lockable-behavior/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donkeycode","download_url":"https://codeload.github.com/donkeycode/propel-lockable-behavior/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241363006,"owners_count":19950669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T23:28:41.979Z","updated_at":"2025-11-26T02:05:31.094Z","avatar_url":"https://github.com/donkeycode.png","language":"PHP","readme":"# LockableBehavior\n\n[![Build Status](https://travis-ci.org/donkeycode/propel-lockable-behavior.svg)](https://travis-ci.org/donkeycode/propel-lockable-behavior)\n\nThe **LockableBehavior** behavior allows you to mark columns edited and choose forceUpdate or not.\n\n\nInstallation\n------------\n\nCherry-pick the `LockableBehavior.php` file is `src/`, put it somewhere,\nthen add the following line to your `propel.ini` or `build.properties` configuration file:\n\n``` ini\npropel.behavior.visibility.class = path.to.LockableBehavior\n```\n\n\nUsage\n-----\n\nJust add the following XML tag in your `schema.xml` file:\n\n``` xml\n\u003cbehavior name=\"lockable\"\u003e\n    \u003c!-- Choose columns to apply --\u003e\n    \u003cparameter name=\"apply_to\" value=\"my_field, my_other_field\" /\u003e\n\u003c/behavior\u003e\n```\n\nThe **lockable** behavior requires four parameters to work:\n\n* `apply_to`: the list of column to apply the visibility behavior\n\n\n## In php :\n\n* `$post-\u003eactivateLocker()` set true to locker fields at `preSave`\n* `$post-\u003eactivateLockCheck()` revert locked fields at `preSave` to only persist not locked fields\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkeycode%2Fpropel-lockable-behavior","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonkeycode%2Fpropel-lockable-behavior","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkeycode%2Fpropel-lockable-behavior/lists"}