Contents

performCustomValidation(forMapping:manager:)

Provides the option to perform custom validation on migrated objects during the validation stage of the entity migration policy.

Declaration

func performCustomValidation(forMapping mapping: NSEntityMapping, manager: NSMigrationManager) throws

Parameters

  • mapping:

    The mapping object in use.

  • manager:

    The migration manager performing the migration.

Discussion

This method is called before the default save validation is performed by the framework.

If you implement this method, you must manually obtain the collection of objects you are interested in validating.

See Also

Customizing Stages of the Mapping Life Cycle