Doctrine
Tags
Table of Contents
- $wrapper : mixed
- __callStatic() : mixed
- Add support for magic static method calls.
- createSchema() : mixed
- Alias of updateSchema.
- dropSchema() : mixed
- Drops the database schema for the given classes.
- 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.
- wrapper() : mixed
- Add wrapper to script.
Properties
$wrapper
protected
static mixed
$wrapper
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
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 —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 —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
wrapper()
Add wrapper to script.
public
static wrapper(EntityManager $wrapper) : mixed
Parameters
- $wrapper : EntityManager