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 BelongsToRelation

Representation of the one-to-one relation.

ICanBoogie\ActiveRecord\Relation uses ICanBoogie\Accessor\AccessorTrait (not available)
Extended by ICanBoogie\ActiveRecord\BelongsToRelation
Namespace: ICanBoogie\ActiveRecord
Located at ActiveRecord/BelongsToRelation.php

Methods summary

public
# __construct( ICanBoogie\ActiveRecord\Model $parent, ICanBoogie\ActiveRecord\Model|string $related, array $options = [] )

Parameters

$parent
$related
$options

Overrides

ICanBoogie\ActiveRecord\Relation::__construct
public ICanBoogie\ActiveRecord\Query
# __invoke( ICanBoogie\ActiveRecord $record )

Parameters

$record

Returns

ICanBoogie\ActiveRecord\Query

Inheritdoc

protected
# alter_prototype( ICanBoogie\Prototype $prototype, string $property )

Adds a setter for the property to update the local key.

Adds a setter for the property to update the local key.

Parameters

$prototype
The active record prototype.
$property
The name of the property.

Inheritdoc

Overrides

ICanBoogie\ActiveRecord\Relation::alter_prototype
protected string
# resolve_property_name( ICanBoogie\ActiveRecord\Model|string $related )

Parameters

$related
The related model of the relation.

Returns

string

Inheritdoc

Overrides

ICanBoogie\ActiveRecord\Relation::resolve_property_name

Methods inherited from ICanBoogie\ActiveRecord\Relation

get_as(), get_foreign_key(), get_local_key(), get_parent(), get_related(), resolve_activerecord_class(), resolve_related()

Properties summary

Properties inherited from ICanBoogie\ActiveRecord\Relation

$as, $foreign_key, $local_key, $parent, $related

Magic properties inherited from ICanBoogie\ActiveRecord\Relation

$as, $foreign_key, $local_key, $parent, $related

ICanBoogie/ActiveRecord master API documentation generated by ApiGen