ClassMetadataInterface::getAttributesMetadata()

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

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

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

ClassMetadataFactoryInterface::hasMetadataFor()

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

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[]

ClassMetadataFactory::getMetadataFor()

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. If the factory was configured with a cache, this method will first look for an existing metadata instance in the cache. If an existing instance is found, it will be returned without further ado. Otherwise, a new metadata instance is created. If the factory was configured with a loader, the metad

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

ClassMetadataFactoryInterface::getMetadataFor()

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. If the factory was configured with a cache, this method will first look for an existing metadata instance in the cache. If an existing instance is found, it will be returned without further ado. Otherwise, a new metadata instance is created. If the factory was configured with a loader, the metad