Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Symfony 1.4 plugin: Adds the Activatable Doctrine behavior which is useful for when you want to hide or 'switch off' certain records. For example, for moderation, approval etc. This adds an is_active column (can be renamed) and helper methods to the Table model class for modifying queries.
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
LICENSE
README.md

README.md

TODO:

  • Add tests to make sure caching of getActiveXxx and countActiveXxx are working and correct

pmActivatable plugin

Overview

This plugin adds the Activatable Doctrine behavior which is useful for when you want to hide or 'switch off' certain records. For example, for moderation, approval etc.

This adds an is_active column (can be renamed) and helper methods to the Table model class for modifying queries.

Installation

php symfony plugin:install pmActivatablePlugin

Upgrade plugins

php symfony plugin:upgrade -r=1.1.11 pmActivatablePlugin

Uninstallation

php symfony plugin:uninstall pmActivatablePlugin

Requirements

Doctrine 1.4

Usage

These methods are added to the Table model class: addIsActiveQuery addIsNotActiveQuery countActive countNotActive findActive findNotActive

License

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Something went wrong with that request. Please try again.