libSmalldb  v2.0.2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractSqlRepository Class Reference

Description

Class AbstractSqlRepository.

This class implements a simple repository of a single entity class.

Inheritance diagram for AbstractSqlRepository

Public Member Functions

 __construct (Smalldb $smalldb, Connection $db)
 
 ref ($id)
 Create a reference to a state machine identified by $id. More...
 

Protected Member Functions

 getDataSource ()
 
 createDataSource ()
 
 createQueryBuilder (string $tableAlias='this')
 
 getMachineProvider ()
 
 getReferenceClass ()
 

Protected Attributes

Connection $db
 
const REF_CLASS = null
 
Smalldb $smalldb
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Smalldb  $smalldb,
Connection  $db 
)

Member Function Documentation

◆ getDataSource()

getDataSource ( )
protected

◆ createDataSource()

createDataSource ( )
protected

◆ createQueryBuilder()

createQueryBuilder ( string  $tableAlias = 'this')
protected

◆ ref()

ref (   $id)

Create a reference to a state machine identified by $id.

Override this method to use a proper return type hint.

Implements SmalldbRepositoryInterface.

◆ getMachineProvider()

getMachineProvider ( )
protectedinherited

◆ getReferenceClass()

getReferenceClass ( )
protectedinherited

Member Data Documentation

◆ $db

Connection $db
protected

◆ REF_CLASS

const REF_CLASS = null
protectedinherited
See also
string

◆ $smalldb

Smalldb $smalldb
protectedinherited