PHPackages                             kml/doctrine-truncate - 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. [Database &amp; ORM](/categories/database)
4. /
5. kml/doctrine-truncate

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

kml/doctrine-truncate
=====================

Sample symfony bundle to clear your database tables in dev mode

v1.0.1(5y ago)019[3 PRs](https://github.com/komlanogbonin/doctrine-truncate/pulls)MITPHPPHP ^7.2

Since Mar 21Pushed 3y agoCompare

[ Source](https://github.com/komlanogbonin/doctrine-truncate)[ Packagist](https://packagist.org/packages/kml/doctrine-truncate)[ RSS](/packages/kml-doctrine-truncate/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

Installation
============

[](#installation)

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require  kml/doctrine-truncate
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require kml/doctrine-truncate
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` for `Symfony 2.x|3.x` file of your project:

```
