Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Mongodb Odm Softdelete Bundle Laravel Package

doctrine/mongodb-odm-softdelete-bundle

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Compliance with Data Retention Policies: Enables soft-deletion for MongoDB-based applications, aligning with GDPR, CCPA, or internal data retention policies without permanent data loss.
  • Cost Efficiency: Avoids expensive database migrations or storage costs associated with hard-deletion by preserving data in a "deleted" state.
  • Feature Roadmap: Supports future-proofing for audit logs, versioning, or recovery features (e.g., "undelete" functionality).
  • Build vs. Buy: Eliminates the need to build custom soft-delete logic for MongoDB ODM, reducing development time and technical debt.
  • Use Cases:
    • User account deactivation (e.g., suspended accounts).
    • Regulatory compliance (e.g., temporary data masking).
    • Sandbox environments where data persistence is critical.

When to Consider This Package

  • Adopt if:

    • Your Symfony2 application uses Doctrine MongoDB ODM and requires soft-deletion.
    • You need audit trails or temporary data removal without permanent deletion.
    • Your team lacks bandwidth to build custom soft-delete logic.
    • You’re not using Symfony 3+ or Doctrine ODM 2.0+ (this bundle is archived and Symfony 2.x-only).
  • Look elsewhere if:

    • You’re using Symfony 3+ or newer (consider Doctrine ODM’s built-in soft-delete or alternatives like stof/doctrine-extensions).
    • Your stack is not Symfony2 + MongoDB ODM (e.g., SQL databases, Laravel, or non-Doctrine ORMs).
    • You need active maintenance (this bundle is archived; evaluate migration risks).
    • Your use case requires hard deletion or advanced recovery features (e.g., time-based retention policies).

How to Pitch It (Stakeholders)

For Executives: "This package lets us comply with data privacy laws (e.g., GDPR) by ‘soft-deleting’ records in MongoDB—keeping data intact but marked as inactive. It’s a low-risk, low-cost way to avoid building custom solutions, saving dev time and reducing storage costs from hard deletions. Ideal for user deactivation or temporary data masking."

For Engineering: "A lightweight Symfony2 bundle that adds soft-delete functionality to Doctrine MongoDB ODM. Works by adding a deletedAt timestamp field to documents, enabling queries to exclude ‘deleted’ records. Pros: No hard deletes, easy to implement. Cons: Archived (Symfony 2.x only), no active updates. Recommend evaluating migration paths if upgrading frameworks."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata