Skip to content

Instantly share code, notes, and snippets.

View maxson007's full-sized avatar
🏠
Working from home

DANIEL Aymane maxson007

🏠
Working from home
View GitHub Profile
@ostrolucky
ostrolucky / UniqueDTO.php
Created December 17, 2017 01:20
UniqueDTOValidator
<?php
declare(strict_types=1);
namespace App\Validator\Constraints;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* Checks if entity associatied to DTO is unique.