Doctrine Projecthttp://www.doctrine-project.org/jira
This file is an XML representation of an issueen-us6.2.3626015-04-2014[PHPCR-60] add finalize step to mapping to calculate and validatehttp://www.doctrine-project.org/jira/browse/PHPCR-60
Doctrine PHPCR<p>follow up of the discussion in <a href="https://github.com/doctrine/phpcr-odm/pull/120" class="external-link" rel="nofollow">https://github.com/doctrine/phpcr-odm/pull/120</a></p>
<p>id strategy:</p>
<p>1. if there is an id with a strategy always use that<br/>
2. if not and there is a parent and a node name mapping use the parent strategy<br/>
3. else use assigned strategy if there is an id field<br/>
4. throw an exception that you can't use this document</p>
<p>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.</p>
<p>think what should be validated at the finalize point.</p>PHPCR-60add finalize step to mapping to calculate and validateImprovementMajorResolvedFixedLukas KahweDavid BuchmannFri, 9 Mar 2012 15:07:49 +0000Wed, 2 Oct 2013 11:19:59 +0000Wed, 2 Oct 2013 11:19:59 +000002<p>added a method for final validation here <a href="https://github.com/doctrine/phpcr-odm/pull/180" class="external-link" rel="nofollow">https://github.com/doctrine/phpcr-odm/pull/180</a></p><p>see <a href="https://github.com/doctrine/phpcr-odm/pull/351" class="external-link" rel="nofollow">https://github.com/doctrine/phpcr-odm/pull/351</a></p>