ClassMetadataInterface

interface ClassMetadataInterface implements MetadataInterface Stores all metadata needed for validating objects of specific class. Most importantly, the metadata stores the constraints against which an object and its properties should be validated. Additionally, the metadata stores whether the "Default" group is overridden by a group sequence for that class and whether instances of that class should be traversed or not. Methods int getCascadingStrategy() Returns the strategy for cascadin

ClassMetadataInterface::getClassName()

string getClassName() Returns the name of the backing PHP class. Return Value string The name of the backing class

ClassMetadataInterface::addAttributeMetadata()

addAttributeMetadata(AttributeMetadataInterface $attributeMetadata) Adds an {@link AttributeMetadataInterface}. Parameters AttributeMetadataInterface $attributeMetadata

ClassMetadataInterface::getConstrainedProperties()

string[] getConstrainedProperties() Returns the names of all constrained properties. Return Value string[] A list of property names

ClassMetadataInterface::getAttributesMetadata()

AttributeMetadataInterface[] getAttributesMetadata() Gets the list of {@link AttributeMetadataInterface}. Return Value AttributeMetadataInterface[]

ClassMetadataInterface

interface ClassMetadataInterface Stores metadata needed for serializing and deserializing objects of specific class. Primarily, the metadata stores the set of attributes to serialize or deserialize. There may only exist one metadata for each attribute according to its name. Methods string getName() Returns the name of the backing PHP class. addAttributeMetadata(AttributeMetadataInterface $attributeMetadata) Adds an {@link AttributeMetadataInterface}. AttributeMetadataInterface[]

ClassMetadataFactoryInterface::hasMetadataFor()

bool hasMetadataFor(mixed $value) Checks if class has metadata. Parameters mixed $value Return Value bool

ClassMetadataFactory deprecated

class ClassMetadataFactory extends LazyLoadingMetadataFactory deprecated since version 2.5, to be removed in 3.0. Use {@link LazyLoadingMetadataFactory} instead. Alias of {@link LazyLoadingMetadataFactory}. Methods __construct(LoaderInterface $loader = null, CacheInterface $cache = null) Creates a new metadata factory. from LazyLoadingMetadataFactory MetadataInterface getMetadataFor(mixed $value) Returns the metadata for the given value. from LazyLoadingMetadataFactory bool h

ClassMetadataFactory::hasMetadataFor()

bool hasMetadataFor(mixed $value) Checks if class has metadata. Parameters mixed $value Return Value bool

ClassMetadataFactoryInterface

interface ClassMetadataFactoryInterface Returns a {see ClassMetadataInterface}. Methods ClassMetadataInterface getMetadataFor(string|object $value) If the method was called with the same class name (or an object of that class) before, the same metadata instance is returned. bool hasMetadataFor(mixed $value) Checks if class has metadata. Details ClassMetadataInterface getMetadataFor(string|object $value) If the method was called with the sa