PHPackages                             websupply/doctrine-wipe - 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. websupply/doctrine-wipe

ActiveNeos-package[Database &amp; ORM](/categories/database)

websupply/doctrine-wipe
=======================

0.0.1(3y ago)146PHP

Since Feb 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/wbsply/doctrine-wipe)[ Packagist](https://packagist.org/packages/websupply/doctrine-wipe)[ RSS](/packages/websupply-doctrine-wipe/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Drop and truncate database tables via CLI, for Neos Flow
========================================================

[](#drop-and-truncate-database-tables-via-cli-for-neos-flow)

Delete all data and tables available from the Doctrine connection. Using the configured platforms `DROP` and `TRUNCATE` query statements.

A quick help, if you need to re-apply all migrations or re-import a dataset to certain tables

These commands are **DESTRUCTIVE**.

Installation
------------

[](#installation)

```
composer require websupply/doctrine-wipe --dev

```

All commands supports `--dry-run`
---------------------------------

[](#all-commands-supports---dry-run)

All commands supports a `--dry-run` command, that will output the statements, but not execute them.

Output would look like this

```
> ./flow doctrine:drop --table products --dry-run
--------------------------------------
 Dry run - no statements are executed
--------------------------------------

[QUERY]: "SET foreign_key_checks = 0"
[QUERY]: "DROP TABLE products"
[QUERY]: "SET foreign_key_checks = 1"
```

The `drop` command
------------------

[](#the-drop-command)

You can drop one or all tables with the command

`./flow doctrine:drop`

One of the following arguments are required

`--all` will drop all tables present in the database (no looking up ORM stuff - this is direct database)

`--table ` will drop only the given table

**Example:**

```
> ./flow doctrine:drop --all

[QUERY]: "SET foreign_key_checks = 0"
[QUERY]: "DROP TABLE `companies`"
[QUERY]: "DROP TABLE `contacts`"
[QUERY]: "DROP TABLE `employees`"
[QUERY]: "DROP TABLE `flow_doctrine_migrationstatus`"
[QUERY]: "DROP TABLE `neos_flow_mvc_routing_objectpathmapping`"
[QUERY]: "DROP TABLE `neos_flow_resourcemanagement_persistentresource`"
[QUERY]: "DROP TABLE `neos_flow_security_account`"
[QUERY]: "DROP TABLE `products`"
[QUERY]: "DROP TABLE `scopes`"
[QUERY]: "DROP TABLE `tasks`"
[QUERY]: "DROP TABLE `users`"
[QUERY]: "SET foreign_key_checks = 1"
```

The `truncate` command
----------------------

[](#the-truncate-command)

The `drop` command
------------------

[](#the-drop-command-1)

You can empty/truncate the rows from one or all tables with the command

`./flow doctrine:truncate`

One of the following arguments are required

`--all` truncate all tables present in the database (no looking up ORM stuff - this is direct database)

`--table ` will truncate only the given table

**Example:**

```
> ./flow doctrine:truncate --all
[QUERY]: "SET foreign_key_checks = 0"
[QUERY]: "TRUNCATE companies"
[QUERY]: "TRUNCATE contacts"
[QUERY]: "TRUNCATE employees"
[QUERY]: "TRUNCATE neos_flow_mvc_routing_objectpathmapping"
[QUERY]: "TRUNCATE neos_flow_resourcemanagement_persistentresource"
[QUERY]: "TRUNCATE neos_flow_security_account"
[QUERY]: "TRUNCATE products"
[QUERY]: "TRUNCATE scopes"
[QUERY]: "TRUNCATE tasks"
[QUERY]: "TRUNCATE users"
[QUERY]: "SET foreign_key_checks = 1"
```

### The Doctrine migration table

[](#the-doctrine-migration-table)

The `flow_doctrine_migrationstatus` table is not truncated, even when passing the `--all` argument.

If you need to truncate this, our guess is, you looking at dropping the whole table and reapply migration.

Support and sponsoring
----------------------

[](#support-and-sponsoring)

Work on this package is supported by the Danish web company **WebSupply ApS**

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1182d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/531918?v=4)[Søren Malling](/maintainers/sorenmalling)[@sorenmalling](https://github.com/sorenmalling)

---

Top Contributors

[![sorenmalling](https://avatars.githubusercontent.com/u/531918?v=4)](https://github.com/sorenmalling "sorenmalling (1 commits)")

---

Tags

flowframeworkneosflow

### Embed Badge

![Health badge](/badges/websupply-doctrine-wipe/health.svg)

```
[![Health](https://phpackages.com/badges/websupply-doctrine-wipe/health.svg)](https://phpackages.com/packages/websupply-doctrine-wipe)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)[usmanhalalit/laracsv

A Laravel package to easily generate CSV files from Eloquent model.

6151.7M4](/packages/usmanhalalit-laracsv)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
