Overview

Namespaces

  • DSchoenbauer
    • Orm
      • Builder
      • Entity
      • Enum
      • Events
        • Persistence
        • Validate
          • DataType
          • Schema
      • Exception
      • Framework

Classes

  • AbstractEntity

Interfaces

  • EntityInterface
  • HasBoolFieldsInterface
  • HasDateFieldsInterface
  • HasDateWithCustomFormatInterface
  • HasDefaultValuesInterface
  • HasFilterInterface
  • HasNumericFieldsInterface
  • HasRequiredFieldsInterface
  • HasStaticValuesInterface
  • HasStringFieldsInterface
  • IsSortableInterface
  • Overview
  • Namespace
  • Class

Class AbstractEntity

Provides common functionality all entities could use

DSchoenbauer\Orm\Entity\AbstractEntity implements DSchoenbauer\Orm\Entity\EntityInterface
Abstract
Namespace: DSchoenbauer\Orm\Entity
Author: David Schoenbauer dschoenbauer@gmail.com
Located at Orm/Entity/AbstractEntity.php
Methods summary
public string
# getIdField( )

provides field with primary key

provides field with primary key

Returns

string

Since

v1.0.0

Implementation of

DSchoenbauer\Orm\Entity\EntityInterface::getIdField()
public string
# getTable( )

provides which table the entities data is stored in

provides which table the entities data is stored in

Returns

string

Since

v1.0.0

Implementation of

DSchoenbauer\Orm\Entity\EntityInterface::getTable()
public string
# getName( )

provides a name that can be used to reference the entity

provides a name that can be used to reference the entity

Returns

string

Since

v1.0.0

Implementation of

DSchoenbauer\Orm\Entity\EntityInterface::getName()
public
# setIdField( string $idField )

sets field with primary key

sets field with primary key

Parameters

$idField

Returns


$this

Since

v1.0.0
public
# setTable( string $table )

sets which table the entities data is stored in

sets which table the entities data is stored in

Parameters

$table

Returns


$this

Since

v1.0.0
public
# setName( string $name )

sets a name that can be used to reference the entity

sets a name that can be used to reference the entity

Parameters

$name

Returns


$this

Since

v1.0.0
public array
# getAllFields( )

provides an array of all fields the entity has

provides an array of all fields the entity has

Returns

array

Since

v1.0.0

Implementation of

DSchoenbauer\Orm\Entity\EntityInterface::getAllFields()
API documentation generated by ApiGen