ICanBoogie/ActiveRecord master
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • ActiveRecord
      • Driver

Classes

  • ActiveRecordCacheBase
  • BelongsToRelation
  • Connection
  • ConnectionCollection
  • ConnectionOptions
  • DateTimePropertySupport
  • HasManyRelation
  • Helpers
  • Model
  • ModelCollection
  • Query
  • Relation
  • RelationCollection
  • RelationNotDefined
  • RuntimeActiveRecordCache
  • Schema
  • SchemaColumn
  • Statement
  • Table

Interfaces

  • ActiveRecordCache
  • Driver
  • Exception

Traits

  • CreatedAtProperty
  • DateProperty
  • DateTimeProperty
  • FinishAtProperty
  • FinishedAtProperty
  • StartAtProperty
  • StartedAtProperty
  • UpdatedAtProperty

Exceptions

  • ActiveRecordClassNotValid
  • ConnectionAlreadyEstablished
  • ConnectionNotDefined
  • ConnectionNotEstablished
  • DriverNotDefined
  • ModelAlreadyInstantiated
  • ModelNotDefined
  • RecordNotFound
  • ScopeNotDefined
  • StatementInvocationFailed
  • StatementNotValid
  • UnableToSetFetchMode

Functions

  • extract_charset_and_collate
  • get_model

Class ScopeNotDefined

Exception thrown in attempt to obtain a scope that is not defined.

Exception implements Throwable
Extended by LogicException
Extended by ICanBoogie\ActiveRecord\ScopeNotDefined implements ICanBoogie\ActiveRecord\Exception uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\ActiveRecord
Located at ActiveRecord/ScopeNotDefined.php

Methods summary

protected
# get_scope_name( )
protected
# get_model( )
public
# __construct( string $scope_name, ICanBoogie\ActiveRecord\Model $model, integer $code = 500, ICanBoogie\ActiveRecord\Exception $previous = null )

Initializes the $scope_name and $model properties.

Initializes the $scope_name and $model properties.

Parameters

$scope_name
Name of the scope.
$model
Model on which the scope was invoked.
$code
Default to 404.
$previous
Previous exception.

Overrides

Exception::__construct
protected string
# format_message( string $scope_name, ICanBoogie\ActiveRecord\Model $model )

Formats exception message.

Formats exception message.

Parameters

$scope_name
$model

Returns

string

Methods inherited from Exception

__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Properties summary

Properties inherited from Exception

$code, $file, $line, $message

Magic properties

public read-only string $scope_name
public read-only ICanBoogie\ActiveRecord\Model $model
ICanBoogie/ActiveRecord master API documentation generated by ApiGen