Overview

Namespaces

  • rsanchez
    • Deep
      • App
        • EE
        • Laravel
          • Facade
      • Collection
      • Hydrator
      • Model
      • Plugin
      • Relations
      • Repository

Classes

  • AbstractEntity
  • AbstractField
  • AbstractProperty
  • Asset
  • Category
  • CategoryField
  • CategoryPosts
  • Channel
  • Comment
  • Entry
  • Field
  • Fieldtype
  • File
  • GridCol
  • GridRow
  • JoinableScope
  • MatrixCol
  • MatrixRow
  • Member
  • MemberField
  • PlayaEntry
  • RelationshipEntry
  • Site
  • Title
  • UploadPref

Interfaces

  • FileInterface

Traits

  • GlobalAttributeVisibilityTrait
  • JoinableTrait
  • Overview
  • Namespace
  • Class
  • Tree

Trait JoinableTrait

Model which can optionally join the specified table(s)

Direct Known Users

rsanchez\Deep\Model\Asset, rsanchez\Deep\Model\Category, rsanchez\Deep\Model\Member, rsanchez\Deep\Model\Title

Indirect Known Users

rsanchez\Deep\Model\Entry, rsanchez\Deep\Model\PlayaEntry, rsanchez\Deep\Model\RelationshipEntry
Namespace: rsanchez\Deep\Model
Located at Model/JoinableTrait.php
Methods summary
public static Illuminate\Database\Eloquent\Model|Collection
# find( mixed $id, array $columns = array('*') )

Find a model by its primary key.

Find a model by its primary key.

Parameters

$id
mixed
$id
$columns
array
$columns

Returns

Illuminate\Database\Eloquent\Model|Collection
protected static
# bootJoinableTrait( )

Set the global eloquent scope

Set the global eloquent scope

public static array
# defaultJoinTables( )

Set which tables should be joined automatically

Set which tables should be joined automatically

Returns

array
protected static array
# joinTables( )

Return a structured array of joinable tables ex.
'members' => array('members.member_id', 'channel_titles.author_id'),

Return a structured array of joinable tables ex. 'members' => array('members.member_id', 'channel_titles.author_id'),

Returns

array
public Illuminate\Database\Eloquent\Builder
# requireTable( Illuminate\Database\Eloquent\Builder $builder, string $table )

Join the required table, once

Join the required table, once

Parameters

$builder
Illuminate\Database\Eloquent\Builder
$builder
$table
string
$table table name

Returns

Illuminate\Database\Eloquent\Builder
$builder
API documentation generated by ApiGen 2.8.0