RelativePath

class RelativePath extends PropertyPath Constants SINGULAR_SEPARATOR Character used for separating between plural and singular of an element. Methods __construct(FormInterface $root, PropertyPath|string $propertyPath) string __toString() Returns the string representation of the property path from PropertyPath integer getLength() Returns the length of the property path, i.e. the number of elements. from PropertyPath PropertyPath getParent() Returns the parent property pat

RememberMeAuthenticationProvider

class RememberMeAuthenticationProvider implements AuthenticationProviderInterface Methods __construct(UserCheckerInterface $userChecker, string $secret, string $providerKey) Constructor. TokenInterface authenticate(TokenInterface $token) Attempts to authenticate a TokenInterface object. bool supports(TokenInterface $token) Checks whether this provider supports the given token. Details __construct(UserCheckerInterface $userChecker, string $secret,

RememberMeAuthenticationProvider::authenticate()

TokenInterface authenticate(TokenInterface $token) Attempts to authenticate a TokenInterface object. Parameters TokenInterface $token The TokenInterface instance to authenticate Return Value TokenInterface An authenticated TokenInterface instance, never null Exceptions AuthenticationException if the authentication fails

RegistryInterface::getEntityNamespace()

string getEntityNamespace(string $alias) Resolves a registered namespace alias to the full namespace. This method looks for the alias in all registered entity managers. Parameters string $alias The alias Return Value string The full namespace See also Configuration::getEntityNamespace

RegistryInterface::getEntityManagers()

array getEntityManagers() Gets an array of all registered entity managers. Return Value array An array of EntityManager instances

RegistryInterface::resetEntityManager()

EntityManager resetEntityManager(string $name = null) Resets a named entity manager. This method is useful when an entity manager has been closed because of a rollbacked transaction AND when you think that it makes sense to get a new one to replace the closed one. Be warned that you will get a brand new entity manager as the existing one is not useable anymore. This means that any other object with a dependency on this entity manager will hold an obsolete reference. You can injec

RegistryInterface::getDefaultEntityManagerName()

string getDefaultEntityManagerName() Gets the default entity manager name. Return Value string The default entity manager name

RegistryInterface::getEntityManagerForClass()

EntityManager|null getEntityManagerForClass(string $class) Gets the entity manager associated with a given class. Parameters string $class A Doctrine Entity class name Return Value EntityManager|null

RegistryInterface

interface RegistryInterface implements ManagerRegistry References Doctrine connections and entity managers. Methods string getDefaultEntityManagerName() Gets the default entity manager name. EntityManager getEntityManager(string $name = null) Gets a named entity manager. array getEntityManagers() Gets an array of all registered entity managers. EntityManager resetEntityManager(string $name = null) Resets a named entity manager. string getEntityNamespace(string $alias)

RegisterMappingsPass

class RegisterMappingsPass implements CompilerPassInterface Base class for the doctrine bundles to provide a compiler pass class that helps to register doctrine mappings. The compiler pass is meant to register the mappings with the metadata chain driver corresponding to one of the object managers. For concrete implementations that are easy to use, see the RegisterXyMappingsPass classes in the DoctrineBundle resp. DoctrineMongodbBundle, DoctrineCouchdbBundle and DoctrinePhpcrBundle. Methods