PHPackages                             ck-developer/doctrine-behaviors - 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. ck-developer/doctrine-behaviors

AbandonedLibrary

ck-developer/doctrine-behaviors
===============================

Doctrine2 behavior traits

v1.0.3(11y ago)020MITPHPPHP &gt;=5.4

Since Dec 5Pushed 11y ago1 watchersCompare

[ Source](https://github.com/ck-developer/DoctrineBehaviors)[ Packagist](https://packagist.org/packages/ck-developer/doctrine-behaviors)[ Docs](http://knplabs.com)[ RSS](/packages/ck-developer-doctrine-behaviors/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (10)Used By (0)

Doctrine2 Behaviors
===================

[](#doctrine2-behaviors)

[![Latest Stable Version](https://camo.githubusercontent.com/aee0c38e78c525d1a8ce0c169d6fdd3c09ed864bb23a9019c5b28df2bd6a3f48/68747470733a2f2f706f7365722e707567782e6f72672f6b6e706c6162732f646f637472696e652d6265686176696f72732f762f737461626c652e737667)](https://packagist.org/packages/knplabs/doctrine-behaviors)[![Latest Stable Version](https://camo.githubusercontent.com/aee0c38e78c525d1a8ce0c169d6fdd3c09ed864bb23a9019c5b28df2bd6a3f48/68747470733a2f2f706f7365722e707567782e6f72672f6b6e706c6162732f646f637472696e652d6265686176696f72732f762f737461626c652e737667)](https://packagist.org/packages/knplabs/doctrine-behaviors)[![Latest Stable Version](https://camo.githubusercontent.com/aee0c38e78c525d1a8ce0c169d6fdd3c09ed864bb23a9019c5b28df2bd6a3f48/68747470733a2f2f706f7365722e707567782e6f72672f6b6e706c6162732f646f637472696e652d6265686176696f72732f762f737461626c652e737667)](https://packagist.org/packages/knplabs/doctrine-behaviors)[![Build Status](https://camo.githubusercontent.com/7f690ce5343def5f435b9eea2f4f3a7e32b7a3e881f64cf4e76fe5af287df579/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4b6e704c6162732f446f637472696e654265686176696f72732e706e67)](http://travis-ci.org/KnpLabs/DoctrineBehaviors)

This php 5.4+ library is a collection of traits that add behaviors to Doctrine2 entites and repositories.

It currently handles:

- [tree](#tree)
- [translatable](#translatable)
- [timestampable](#timestampable)
- [softDeletable](#softDeletable)
- [blameable](#blameable)
- [loggable](#loggable)
- [geocodable](#geocodable)
- [filterable](#filterable)
- [sluggable](#sluggable)
- [Tokenable](#tokenable)

Notice:
-------

[](#notice)

Some behaviors (translatable, timestampable, softDeletable, blameable, geocodable) need Doctrine subscribers in order to work. Make sure to activate them by reading the [Subscribers](#subscribers) section.

Subscribers
-----------

[](#subscribers)

If you use symfony2, you can easily register them by importing a service definition file:

```
    # app/config/config.yml
    imports:
        - { resource: ../../vendor/knplabs/doctrine-behaviors/config/orm-services.yml }
```

You can also register them using doctrine2 api:

```
