mediatekformation

SchemaValidator
in package

Performs strict validation of the mapping schema

Tags
link
www.doctrine-project.com

Table of Contents

$em  : EntityManagerInterface
__construct()  : mixed
schemaInSyncWithMetadata()  : bool
Checks if the Database Schema is in sync with the current metadata state.
validateClass()  : array<string|int, string>
Validates a single class of the current.
validateMapping()  : mixed
Checks the internal consistency of all mapping files.

Properties

Methods

schemaInSyncWithMetadata()

Checks if the Database Schema is in sync with the current metadata state.

public schemaInSyncWithMetadata() : bool
Return values
bool

validateMapping()

Checks the internal consistency of all mapping files.

public validateMapping() : mixed

There are several checks that can't be done at runtime or are too expensive, which can be verified with this command. For example:

  1. Check if a relation with "mappedBy" is actually connected to that specified field.
  2. Check if "mappedBy" and "inversedBy" are consistent to each other.
  3. Check if "referencedColumnName" attributes are really pointing to primary key columns.
Tags
psalm-return

array<string, list>

Return values
mixed

Search results