ICanBoogie/ActiveRecord 3.0.x
  • Namespace
  • Class

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
Extended by 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( )

Inheritdoc

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

Parameters

$context

Returns

ICanBoogie\ActiveRecord

Constants summary

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

Specify the column to check, otherwise attribute is used.

Specify the column to check, otherwise attribute is used.

# 'column'
ICanBoogie/ActiveRecord 3.0.x API documentation generated by ApiGen