PHPackages                             nick4fake/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nick4fake/doctrine-behaviors

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

nick4fake/doctrine-behaviors
============================

Doctrine2 behavior traits

v1.0.2(11y ago)21.5k1MITPHPPHP &gt;=5.4.0

Since Dec 5Pushed 10y ago3 watchersCompare

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

READMEChangelogDependencies (4)Versions (9)Used By (1)

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

[](#doctrine2-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)

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:

```
