Doctrine
in package
Uses
StaticTrait
Table of Contents
- $instance : mixed
- Instance object.
- __callStatic() : mixed
- Add support for magic static method calls.
- _i() : mixed
- _instance() : mixed
- clear() : void
- createQueryBuilder() : QueryBuilder
- createSchema() : mixed
- Alias of updateSchema.
- detach() : void
- dropSchema() : mixed
- Drops the database schema for the given classes.
- find() : object
- flush() : void
- getExpressionBuilder() : Expr
- getRepository() : object
- instance() : mixed
- Set/get a instance of object.
- persist() : void
- refresh() : void
- remove() : void
- syncEntities() : mixed
- Alias of updateSchema.
- syncEntity() : mixed
- Alias of updateSchema.
- updateSchema() : int
- Updates the database schema of the given classes by comparing the ClassMetadata instances to the current database schema that is inspected.
Properties
$instance
Instance object.
protected
static mixed
$instance
Methods
__callStatic()
Add support for magic static method calls.
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
Return values
mixed —the returned value from the resolved method
_i()
public
static _i() : mixed
Return values
mixed —_instance()
public
static _instance() : mixed
Return values
mixed —clear()
public
static clear() : void
Return values
void —createQueryBuilder()
public
static createQueryBuilder() : QueryBuilder
Return values
QueryBuilder —createSchema()
Alias of updateSchema.
public
static createSchema(array<string|int, mixed> $entities[, mixed|null $dumpSql = null ]) : mixed
Parameters
- $entities : array<string|int, mixed>
- $dumpSql : mixed|null = null
Return values
mixed —detach()
public
static detach(mixed $entity) : void
Parameters
- $entity : mixed
Return values
void —dropSchema()
Drops the database schema for the given classes.
public
static dropSchema(array<string|int, mixed> $entities) : mixed
Parameters
- $entities : array<string|int, mixed>
Return values
mixed —find()
public
static find(mixed $className, mixed $id, mixed $lockMode, mixed $lockVersion) : object
Parameters
- $className : mixed
- $id : mixed
- $lockMode : mixed
- $lockVersion : mixed
Return values
object —flush()
public
static flush() : void
Return values
void —getExpressionBuilder()
public
static getExpressionBuilder() : Expr
Return values
Expr —getRepository()
public
static getRepository(mixed $entityName) : object
Parameters
- $entityName : mixed
Return values
object —instance()
Set/get a instance of object.
public
static instance(mixed $instance) : mixed
Parameters
- $instance : mixed
Return values
mixed —persist()
public
static persist(mixed $entity) : void
Parameters
- $entity : mixed
Return values
void —refresh()
public
static refresh(mixed $entity, int|null $lockMode = null) : void
Parameters
- $entity : mixed
- $lockMode = null : int|null
Return values
void —remove()
public
static remove(mixed $entity) : void
Parameters
- $entity : mixed
Return values
void —syncEntities()
Alias of updateSchema.
public
static syncEntities(array<string|int, mixed> $entities[, mixed|null $dumpSql = null ]) : mixed
Parameters
- $entities : array<string|int, mixed>
- $dumpSql : mixed|null = null
Return values
mixed —syncEntity()
Alias of updateSchema.
public
static syncEntity(string $entity[, mixed|null $dumpSql = null ]) : mixed
Parameters
- $entity : string
- $dumpSql : mixed|null = null
Return values
mixed —updateSchema()
Updates the database schema of the given classes by comparing the ClassMetadata instances to the current database schema that is inspected.
public
static updateSchema(array<string|int, mixed> $entities[, bool $dumpSql = null ]) : int
Parameters
- $entities : array<string|int, mixed>
- $dumpSql : bool = null
-
Dumps the generated SQL statements to the screen
Return values
int —Number of queries