BEdita API doc | 4-cactus
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Download

Namespaces

  • BEdita
    • API
      • Auth
      • Controller
        • Admin
        • Component
        • Model
      • Error
      • Event
      • Exception
      • Middleware
      • Model
        • Action
      • Network
        • Exception
      • Shell
      • TestSuite
      • Utility
    • Core
      • Configure
        • Engine
      • Database
        • Type
      • Exception
      • Filesystem
        • Adapter
        • Exception
        • Thumbnail
      • I18n
      • Job
        • Service
      • Mailer
        • Preview
        • Transport
      • Model
        • Action
        • Behavior
        • Entity
        • Table
        • Validation
      • ORM
        • Inheritance
        • Locator
        • Rule
      • Shell
        • Task
      • State
      • TestSuite
        • Fixture
      • Utility

Classes

  • AssociationCollection
  • InheritanceEventHandler
  • Marshaller
  • Query
  • Table

Class Table

Base Table class used by tables that needs class table inheritance (CTI)

It exposes an extensionOf() method to inherit properties and associations from another table.

Each table can inherit from only one table. Inheritance can be deep.

Cake\ORM\Table
Extended by BEdita\Core\ORM\Inheritance\Table

Direct known subclasses

BEdita\Core\Model\Table\ObjectsBaseTable

Indirect known subclasses

BEdita\Core\Model\Table\LocationsTable, BEdita\Core\Model\Table\MediaTable

Namespace: BEdita\Core\ORM\Inheritance
Since: 4.0.0
Located at Core/src/ORM/Inheritance/Table.php

Methods summary

public
# initialize( array $config )

Codecoverageignore

public
# marshaller( )
public
# query( )
public BEdita\Core\ORM\Inheritance\Table
# extensionOf( string|Cake\ORM\Table $associated )

Configure this table to inherit from another table.

Configure this table to inherit from another table.

Parameters

$associated
The extended table. It can be either a registry alias or an instance.

Returns

BEdita\Core\ORM\Inheritance\Table
$this
public boolean
# isTableInherited( string $tableName, boolean $nested = false )

Say if table $tableName is inherited by current Table.

Say if table $tableName is inherited by current Table.

Parameters

$tableName
The table name to check
$nested
If it must check nested inheritance

Returns

boolean
public Cake\ORM\Table|null
# inheritedTable( )

Return the inherited table from current table.

Return the inherited table from current table.

Returns

Cake\ORM\Table|null
public Cake\ORM\Table[]
# inheritedTables( )

Return the inherited tables from current Table.

Return the inherited tables from current Table.

Returns

Cake\ORM\Table[]
public Cake\ORM\Table[]
# commonInheritance( Cake\ORM\Table $table )

Find all common tables in inheritance chain.

Find all common tables in inheritance chain.

Parameters

$table
Table to compare current table to.

Returns

Cake\ORM\Table[]
public
# hasFinder( $type )
public
# callFinder( $type, Cake\ORM\Query $query, array $options = [] )
public
# hasField( boolean $field, $inheritedFields = true )

Parameters

$field
$inheritedFields Should fields from inherited tables be considered?
$inheritedFields
public
# __clone( )

Perform operations when cloning table.

Perform operations when cloning table.

Properties summary

protected Cake\ORM\Table|string|null $inheritedTable

Table that is being inherited by this one.

Table that is being inherited by this one.

# null
BEdita API doc | 4-cactus API documentation generated by ApiGen