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 HasManyRelation

Representation of the one-to-many relation.

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

Methods summary

public ICanBoogie\ActiveRecord\Query
# __invoke( ICanBoogie\ActiveRecord $record )

Create a query to retrieve the records that belong to the specified record.

Create a query to retrieve the records that belong to the specified record.

Parameters

$record

Returns

ICanBoogie\ActiveRecord\Query
protected string
# resolve_property_name( ICanBoogie\ActiveRecord\Model|string $related )

Resolve the property name from the related model.

Resolve the property name from the related model.

Parameters

$related
The related model of the relation.

Returns

string

Overrides

ICanBoogie\ActiveRecord\Relation::resolve_property_name

Methods inherited from ICanBoogie\ActiveRecord\Relation

__construct(), alter_prototype(), 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