[FEATURE] Add DocumentValidator using YAML rules

A document validator is added that will act on any instance of the
AbstractDocument and validate it according to type and validation rules
given in YAML configuration.

Related: #45167
[FEATURE] Support getting identifiers from the persistenceManager

This change inroduces 2 new advices for getIdentifierByObject
and getObjectByIdentifier. This will now make sure that the
persistenceManager will return the corresponding values
regardless of the model being an entity or a document.
Merge pull request #2 from kdambekalns/documentvalidator

[FEATURE] Add DocumentValidator using YAML rules
[BUGFIX] Fix wrong argument names in AOP aspect
[BUGFIX] Fix illegal argument for foreach()

If no model configuration in the yaml definition is found, the
isValid() call should return the result of the GenericObjectValidator.
This fixes a fatal error on a NULL value being passed as array
to the foreach loop.
[TASK] Remove the DocumentValidator

This validator was specifically tied to another project.
[TASK] Remove leftover DocumentValidatorTest
Merge pull request #4 from kdambekalns/documentvalidatortest

[TASK] Remove leftover DocumentValidatorTest
[TASK] Remove unused (testing) configuration file
Merge pull request #5 from kdambekalns/removeconfigfile

[TASK] Remove unused (testing) configuration file
[BUGFIX] Fix mapping error with classes not being Documents

When an object is to be fetched but it is not a valid Document
an exception would be thrown. This changes ignores that exception.
Merge pull request #6 from kdambekalns/catch-invalid-document

[BUGFIX] Fix mapping error with classes not being Documents
[MERGE] Merge Doctrine branch into master