Giter Club home page Giter Club logo

duplicatecheckbundle's Introduction

What does this bundle do?

This bundle provides a functionality to perform duplicate checks against your entities. Especially in the CRM context you will encounter in the issue where you database is full of duplicates.

Usage

To enable the duplicate check for a given entity just, enable the check via the entity config:

<?php
/**
 * @ORM\Entity
 * @Config(
 *  defaultValues={
 *      "duplicate"={
 *          "enabled"=true
 *      }
 *  }
 * )
 */
class MyEntity
{
    /**
     * @Config(defaultValues={"duplicate"={"enabled"=true}})
     */
    protected $name:
}

The bundle will perform a entity check, if an entity is created or updated automatically.

Trigger manually

If you want to perform a check manually, you can use the Facade class. This class performs a check and save the result immediately.

Please beware, that this check will might consume multiple megabyte of ram, depending of you database.

Create your own adapter

Creating your own adapter is really simple. This bundle follows the Adapter Pattern. So just create a class which implements the AdapterInterface and tag this service with the tag "dmk_duplicate_check.adapter".

duplicatecheckbundle's People

Contributors

baachi avatar benjaminquandt avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

schneiel

duplicatecheckbundle's Issues

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - oro/platform[3.0.0-rc, ..., 3.1.x-dev] require robloach/component-installer 0.2.* -> satisfiable by robloach/component-installer[0.2.0, 0.2.1, 0.2.2, 0.2.3].
    - oro/platform[2.6.0, ..., 2.6.x-dev, 3.0.0-beta] require akeneo/batch-bundle 0.4.2 -> satisfiable by akeneo/batch-bundle[0.4.2] from composer repo (https://repo.packagist.org) but akeneo/batch-bundle[dev-master, 0.4.7, ..., 0.6.x-dev (alias of dev-master)] from composer repo (https://packagist.orocrm.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
    - robloach/component-installer 0.2.0 requires composer-plugin-api 1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - robloach/component-installer[0.2.1, ..., 0.2.3] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - Root composer.json requires oro/platform ^2.6|^3.0 -> satisfiable by oro/platform[2.6.0, ..., 2.6.x-dev, 3.0.0-beta, ..., 3.1.x-dev].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - oro/platform[3.0.0-rc, ..., 3.1.x-dev] require robloach/component-installer 0.2.* -> satisfiable by robloach/component-installer[0.2.0, 0.2.1, 0.2.2, 0.2.3].
    - oro/platform[2.6.0, ..., 2.6.x-dev, 3.0.0-beta] require akeneo/batch-bundle 0.4.2 -> satisfiable by akeneo/batch-bundle[0.4.2] from composer repo (https://repo.packagist.org) but akeneo/batch-bundle[dev-master, 0.4.7, ..., 0.6.x-dev (alias of dev-master)] from composer repo (https://packagist.orocrm.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
    - robloach/component-installer 0.2.0 requires composer-plugin-api 1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - robloach/component-installer[0.2.1, ..., 0.2.3] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - Root composer.json requires oro/platform ^2.6|^3.0 -> satisfiable by oro/platform[2.6.0, ..., 2.6.x-dev, 3.0.0-beta, ..., 3.1.x-dev].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - oro/platform[3.0.0-rc, ..., 3.1.x-dev] require robloach/component-installer 0.2.* -> satisfiable by robloach/component-installer[0.2.0, 0.2.1, 0.2.2, 0.2.3].
    - oro/platform[2.6.0, ..., 2.6.x-dev, 3.0.0-beta] require akeneo/batch-bundle 0.4.2 -> satisfiable by akeneo/batch-bundle[0.4.2] from composer repo (https://repo.packagist.org) but akeneo/batch-bundle[dev-ticket/doctrine_orm_2.8, dev-master, 0.4.7, ..., 0.6.x-dev (alias of dev-master)] from composer repo (https://packagist.orocrm.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
    - robloach/component-installer 0.2.0 requires composer-plugin-api 1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - robloach/component-installer[0.2.1, ..., 0.2.3] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - Root composer.json requires oro/platform ^2.6|^3.0 -> satisfiable by oro/platform[2.6.0, ..., 2.6.x-dev, 3.0.0-beta, ..., 3.1.x-dev].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Support more Adapters

We currently supports only one backend:

Possible Backends would be:

  • ElasticSearch
  • Solr
  • Apache Spark
  • Levenshtein

Add Documentation

We all love documentation, so we should provide some documentation.

We could use readthedocs, to provide some documentation.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - oro/platform[3.0.0-rc, ..., 3.1.x-dev] require robloach/component-installer 0.2.* -> satisfiable by robloach/component-installer[0.2.0, 0.2.1, 0.2.2, 0.2.3].
    - oro/platform[2.6.0, ..., 2.6.x-dev, 3.0.0-beta] require akeneo/batch-bundle 0.4.2 -> satisfiable by akeneo/batch-bundle[0.4.2] from composer repo (https://repo.packagist.org) but akeneo/batch-bundle[dev-ticket/BAP-20282_swiftmailer_update, dev-master, 0.4.7, ..., 0.6.x-dev (alias of dev-master)] from composer repo (https://packagist.orocrm.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
    - robloach/component-installer 0.2.0 requires composer-plugin-api 1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - robloach/component-installer[0.2.1, ..., 0.2.3] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - Root composer.json requires oro/platform ^2.6|^3.0 -> satisfiable by oro/platform[2.6.0, ..., 2.6.x-dev, 3.0.0-beta, ..., 3.1.x-dev].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.