An open API service indexing awesome lists of open source software.

https://github.com/doctrine/mongodb-odm-softdelete-bundle

Symfony2 bundle that integrates the Doctrine MongoDB ODM SoftDelete library.
https://github.com/doctrine/mongodb-odm-softdelete-bundle

Last synced: 7 months ago
JSON representation

Symfony2 bundle that integrates the Doctrine MongoDB ODM SoftDelete library.

Awesome Lists containing this project

README

          

# Doctrine MongoDB SoftDelete Bundle

This bundle implements soft-deletion for Doctrine MongoDB ODM and Symfony2.

## Installation **(Symfony 2.0.x only)**

##### 1. Add the following to your `deps` file:

```ini
[doctrine-odm-softdelete]
git=git://github.com/doctrine/mongodb-odm-softdelete.git

[DoctrineMongoDBSoftDeleteBundle]
git=git://github.com/doctrine/mongodb-odm-softdelete-bundle.git
target=bundles/Doctrine/Bundle/MongoDBSoftDeleteBundle
```

##### 2. Run the vendors install script:

```
php bin/vendors install
```

##### 3. Add the `Doctrine\\ODM\\MongoDB\\SoftDelete` namespace to `app/autoload.php`:

```php
registerNamespaces(array(
// ...
'Doctrine\\ODM\\MongoDB\\SoftDelete' => __DIR__ . '/../vendor/doctrine-odm-softdelete/lib',
```

##### 4. Setup the bundle to load in `app/appKernel.php`:

```php