PHP Class Kdyby\Doctrine\Connection

Author: Filip Procházka ([email protected])
Inheritance: extends Doctrine\DBAL\Connection
Datei anzeigen Open project: kdyby/doctrine Class Usage Examples

Public Properties

Property Type Description
$throwOldKdybyExceptions boolean

Public Methods

Method Description
__call ( string $name, array $args ) : mixed Call to undefined method.
__callStatic ( string $name, array $args ) : mixed Call to undefined static method.
__get ( string $name ) : mixed Returns property value. Do not call directly.
__isset ( string $name ) : boolean Is property defined?
__set ( string $name, mixed $value ) : void Sets value of a property. Do not call directly.
__unset ( string $name ) : void Access to undeclared property.
bindEntityManager ( EntityManager $em )
connect ( )
create ( array $params, Doctrine\DBAL\Configuration $config, Doctrine\Common\EventManager $eventManager ) : Connection
createQueryBuilder ( ) : Doctrine\DBAL\Query\QueryBuilder | Kdyby\Doctrine\NativeQueryBuilder
delete ( $tableExpression, array $identifier, array $types = [] )
exec ( string $statement ) : integer
executeQuery ( string $query, array $params = [], array $types = [], Doctrine\DBAL\Cache\QueryCacheProfile $qcp = NULL ) : Doctrine\DBAL\Driver\Statement
executeUpdate ( string $query, array $params = [], array $types = [] ) : integer
extensionMethod ( $name, null $callback = NULL ) : callable | null Adding method to class.
getDatabasePlatform ( ) : Doctrine\DBAL\Platforms\AbstractPlatform
getReflection ( ) : ClassType Access to reflection.
insert ( $tableExpression, array $data, array $types = [] )
ping ( )
prepare ( string $statement ) : Kdyby\Doctrine\PDOStatement Prepares an SQL statement.
query ( ) : Doctrine\DBAL\Driver\Statement | mixed
quoteIdentifier ( string $expression ) : string Tries to autodetect, if identifier has to be quoted and quotes it.
resolveException ( Exception | Throwable $e, string $query = NULL, array $params = [] ) : DBALException
setDbalTypes ( array $dbalTypes )
setSchemaTypes ( array $schemaTypes )
update ( $tableExpression, array $data, array $identifier, array $types = [] )

Private Methods

Method Description
resolveExceptionTable ( Exception | Throwable $e ) : string | null

Method Details

__call() public method

Call to undefined method.
public __call ( string $name, array $args ) : mixed
$name string
$args array
return mixed

__callStatic() public static method

Call to undefined static method.
public static __callStatic ( string $name, array $args ) : mixed
$name string
$args array
return mixed

__get() public method

Returns property value. Do not call directly.
public __get ( string $name ) : mixed
$name string
return mixed

__isset() public method

Is property defined?
public __isset ( string $name ) : boolean
$name string
return boolean

__set() public method

Sets value of a property. Do not call directly.
public __set ( string $name, mixed $value ) : void
$name string
$value mixed
return void

__unset() public method

Access to undeclared property.
public __unset ( string $name ) : void
$name string
return void

bindEntityManager() public method

public bindEntityManager ( EntityManager $em )
$em Doctrine\ORM\EntityManager

connect() public method

public connect ( )

create() public static method

public static create ( array $params, Doctrine\DBAL\Configuration $config, Doctrine\Common\EventManager $eventManager ) : Connection
$params array
$config Doctrine\DBAL\Configuration
$eventManager Doctrine\Common\EventManager
return Connection

createQueryBuilder() public method

public createQueryBuilder ( ) : Doctrine\DBAL\Query\QueryBuilder | Kdyby\Doctrine\NativeQueryBuilder
return Doctrine\DBAL\Query\QueryBuilder | Kdyby\Doctrine\NativeQueryBuilder

delete() public method

public delete ( $tableExpression, array $identifier, array $types = [] )
$identifier array
$types array

exec() public method

public exec ( string $statement ) : integer
$statement string
return integer

executeQuery() public method

public executeQuery ( string $query, array $params = [], array $types = [], Doctrine\DBAL\Cache\QueryCacheProfile $qcp = NULL ) : Doctrine\DBAL\Driver\Statement
$query string
$params array
$types array
$qcp Doctrine\DBAL\Cache\QueryCacheProfile
return Doctrine\DBAL\Driver\Statement

executeUpdate() public method

public executeUpdate ( string $query, array $params = [], array $types = [] ) : integer
$query string
$params array
$types array
return integer

extensionMethod() public static method

Adding method to class.
public static extensionMethod ( $name, null $callback = NULL ) : callable | null
$name
$callback null
return callable | null

getDatabasePlatform() public method

public getDatabasePlatform ( ) : Doctrine\DBAL\Platforms\AbstractPlatform
return Doctrine\DBAL\Platforms\AbstractPlatform

getReflection() public static method

Access to reflection.
public static getReflection ( ) : ClassType
return Nette\Reflection\ClassType

insert() public method

public insert ( $tableExpression, array $data, array $types = [] )
$data array
$types array

ping() public method

public ping ( )

prepare() public method

Prepares an SQL statement.
public prepare ( string $statement ) : Kdyby\Doctrine\PDOStatement
$statement string The SQL statement to prepare.
return Kdyby\Doctrine\PDOStatement The prepared statement.

query() public method

public query ( ) : Doctrine\DBAL\Driver\Statement | mixed
return Doctrine\DBAL\Driver\Statement | mixed

quoteIdentifier() public method

Tries to autodetect, if identifier has to be quoted and quotes it.
public quoteIdentifier ( string $expression ) : string
$expression string
return string

resolveException() public method

Deprecation:
public resolveException ( Exception | Throwable $e, string $query = NULL, array $params = [] ) : DBALException
$e Exception | Throwable
$query string
$params array
return DBALException

setDbalTypes() public method

public setDbalTypes ( array $dbalTypes )
$dbalTypes array

setSchemaTypes() public method

public setSchemaTypes ( array $schemaTypes )
$schemaTypes array

update() public method

public update ( $tableExpression, array $data, array $identifier, array $types = [] )
$data array
$identifier array
$types array

Property Details

$throwOldKdybyExceptions public_oe property

public bool $throwOldKdybyExceptions
return boolean