Checks that a list of fields from an entity are unique in the table
$_fields
protected array
__construct( array $fields )
Constructor.
$fields
__invoke( Cake\Datasource\EntityInterface $entity , array $options )
Performs the uniqueness check
Cake\Datasource\EntityInterface
$entity
$options
Options passed to the check, where the repository
key is required.
_alias( string $alias , array $conditions )
Add a model alias to all the keys in a set of conditions.
Null values will be omitted from the generated conditions, as SQL UNIQUE indexes treat NULL != NULL
$alias
$conditions
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/3.2/class-Cake.ORM.Rule.IsUnique.html