PHP Class Kdyby\Doctrine\Connection

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

Méthodes publiques

Свойство Type Description
$throwOldKdybyExceptions boolean

Méthodes publiques

Méthode 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

Méthode Description
resolveExceptionTable ( Exception | Throwable $e ) : string | null

Method Details

__call() public méthode

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

__callStatic() public static méthode

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

__get() public méthode

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

__isset() public méthode

Is property defined?
public __isset ( string $name ) : boolean
$name string
Résultat boolean

__set() public méthode

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

__unset() public méthode

Access to undeclared property.
public __unset ( string $name ) : void
$name string
Résultat void

bindEntityManager() public méthode

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

connect() public méthode

public connect ( )

create() public static méthode

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

createQueryBuilder() public méthode

public createQueryBuilder ( ) : Doctrine\DBAL\Query\QueryBuilder | Kdyby\Doctrine\NativeQueryBuilder
Résultat Doctrine\DBAL\Query\QueryBuilder | Kdyby\Doctrine\NativeQueryBuilder

delete() public méthode

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

exec() public méthode

public exec ( string $statement ) : integer
$statement string
Résultat integer

executeQuery() public méthode

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
Résultat Doctrine\DBAL\Driver\Statement

executeUpdate() public méthode

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

extensionMethod() public static méthode

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

getDatabasePlatform() public méthode

public getDatabasePlatform ( ) : Doctrine\DBAL\Platforms\AbstractPlatform
Résultat Doctrine\DBAL\Platforms\AbstractPlatform

getReflection() public static méthode

Access to reflection.
public static getReflection ( ) : ClassType
Résultat Nette\Reflection\ClassType

insert() public méthode

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

ping() public méthode

public ping ( )

prepare() public méthode

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

query() public méthode

public query ( ) : Doctrine\DBAL\Driver\Statement | mixed
Résultat Doctrine\DBAL\Driver\Statement | mixed

quoteIdentifier() public méthode

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

resolveException() public méthode

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

setDbalTypes() public méthode

public setDbalTypes ( array $dbalTypes )
$dbalTypes array

setSchemaTypes() public méthode

public setSchemaTypes ( array $schemaTypes )
$schemaTypes array

update() public méthode

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

Property Details

$throwOldKdybyExceptions public_oe property

public bool $throwOldKdybyExceptions
Résultat boolean