2017 © Pedro Peláez
 

symfony-bundle uniqueentitynotnull-bundle

Check if entity is unique if not null

image

rodgermd/uniqueentitynotnull-bundle

Check if entity is unique if not null

  • Tuesday, December 3, 2013
  • by rodgermd
  • Repository
  • 0 Watchers
  • 2 Stars
  • 12 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

UniqueNotNullEntity

Validates the entity if properties are unique if it is not null, (*1)

Install

composer.json:, (*2)

"rodgermd/uniqueentitynotnull-bundle": "dev-master"

AppKernel.php:, (*3)

new Rodgermd\UniqueNotNullEntityBundle\RodgermdUniqueNotNullEntityBundle(),

Usage

~~~~~ use Rodgermd\UniqueNotNullEntityBundle\Validator as UniqueConstraints; # include namespace shortcut, (*4)

/** * @ORM\Entity * @UniqueConstraints\HasUniqueProperties; # defines the class has properties to check, required to start validation */ class Entity {, (*5)

/** * @UniqueConstraints\UniqueProperty(message="Not unique property") # property to be validated */ protected $property; }, (*6)

The Versions

03/12 2013

dev-master

9999999-dev https://github.com/rodgermd/UniqueNotNullEntity

Check if entity is unique if not null

  Sources   Download

MIT

by Alexander Murashov

03/12 2013

v0.1

0.1.0.0 https://github.com/rodgermd/UniqueNotNullEntity

Check if entity is unique if not null

  Sources   Download

MIT

by Alexander Murashov