ICanBoogie
  • Documentation
  • API Reference
  • ActiveRecord 3.0.x
Namespaces
  • ICanBoogie
    • ActiveRecord
      • ActiveRecordCache
      • Driver
      • Property
      • Validate
        • Reader
        • Validator
        • ValidatorProvider
Classes
  • Unique

Class Unique

Validates that a value is unique in a table's column.

ICanBoogie\Validate\Validator\AbstractValidator
┗ ICanBoogie\ActiveRecord\Validate\Validator\Unique
Namespace: ICanBoogie\ActiveRecord\Validate\Validator
Located at ActiveRecord/Validate/Validator/Unique.php

Methods summary

public validate( $value, ICanBoogie\Validate\Context $context )

Inheritdoc

protected get_params_mapping( void )

Inheritdoc

protected resolve_record( ICanBoogie\Validate\Context $context ) : ICanBoogie\ActiveRecord

Parameters

$context

Returns

ICanBoogie\ActiveRecord

Constants summary

ALIAS : string
'unique'
DEFAULT_MESSAGE : string
'`{value}` is already used'
OPTION_COLUMN : string

Specify the column to check, otherwise attribute is used.

Specify the column to check, otherwise attribute is used.

'column'
ActiveRecord 3.0.x – Check on GitHub – API documentation generated by ApiGen