[PHPCR-60] add finalize step to mapping to calculate and validate Created: 09/Mar/12 Updated: 04/Oct/12
|Reporter:||David Buchmann||Assignee:||Lukas Kahwe|
follow up of the discussion in https://github.com/doctrine/phpcr-odm/pull/120
1. if there is an id with a strategy always use that
finalizing the mapping could have the added benefit of combined validation. for example if assigned strategy is parent and name but there is no field mapped to the name, it would tell this is invalid.
think what should be validated at the finalize point.
|Comment by Lukas Kahwe [ 04/Oct/12 ]|
added a method for final validation here https://github.com/doctrine/phpcr-odm/pull/180