Class IsUnique Checks that a list of fields from an entity are unique in the table  Namespace: Cake\ORM\Rule Location: ORM/Rule/IsUnique.php  Properties summary    $_fields protected  array  The list of fields to check    Method Summary    __construct() public   Constructor.     __invoke() public   Performs the uniqueness check     _alias() protected   Add a model alias to all the keys in a set of conditions.    Method Detail   __construct()source public  __construct( array $fields ) Constructor. Parameters   array $fields  The list of fields to check uniqueness for     __invoke()source public  __invoke( Cake\Datasource\EntityInterface $entity , array $options ) Performs the uniqueness check Parameters   Cake\Datasource\EntityInterface $entity  The entity from where to extract the fields  array $options  Options passed to the check, where the repository key is required.  Returns  boolean    _alias()source protected  _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 Parameters   string $alias  The alias to add.  array $conditions  The conditions to alias.  Returns  array  Properties detail   $_fieldssource   protected array  The list of fields to check 

    
{'path': 'public/docs/cakephp~3.2/class-cake.orm.rule.isunique.html', 'source': 'DevDocs.IO'}