Documentation

MappingDriver

Contract for metadata drivers.

Table of Contents

Methods

getAllClassNames()  : array<int, string>
Gets the names of all mapped classes known to this driver.
isTransient()  : bool
Returns whether the class with the specified name should have its metadata loaded.
loadMetadataForClass()  : void
Loads the metadata for the specified class into the provided container.

Methods

getAllClassNames()

Gets the names of all mapped classes known to this driver.

public getAllClassNames() : array<int, string>
Tags
psalm-return

list

Return values
array<int, string>

The names of all mapped classes known to this driver.

isTransient()

Returns whether the class with the specified name should have its metadata loaded.

public isTransient(string $className) : bool

This is only the case if it is either mapped as an Entity or a MappedSuperclass.

Parameters
$className : string
Tags
psalm-param

class-string $className

Return values
bool

loadMetadataForClass()

Loads the metadata for the specified class into the provided container.

public loadMetadataForClass(string $className, ClassMetadata $metadata) : void
Parameters
$className : string
$metadata : ClassMetadata
Tags
psalm-param

class-string<T> $className

psalm-param

ClassMetadata<T> $metadata

template

T of object


        
On this page

Search results