Unique Model Symfony Constraint Build Status

Port of UniqueEntity constraint

Installation

composer require boshurik/unique-model-constraint

Symfony integration

services:
    _defaults:
        autowire: true
        autoconfigure: true

    BoShurik\Constraints\Model\UniqueModelValidator: ~

without autoconfigure:

services:
    BoShurik\Constraints\Model\UniqueModelValidator:
        arguments:
            - '@doctrine' # @doctrine_mongodb
        tags: ['validator.constraint_validator']