<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sun May 19 00:54:22 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/si/jira.issueviews:issue-xml/PHPCR-42/PHPCR-42.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[PHPCR-42] sync the xml/yml mapping driver with the annotation driver</title>
                <link>http://www.doctrine-project.org/jira/browse/PHPCR-42</link>
                <project id="10060" key="PHPCR">Doctrine PHPCR</project>
                        <description>&lt;p&gt;especially the locale/version stuff is not yet supported. but also the reference mapping seems to look quite different.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13388">PHPCR-42</key>
            <summary>sync the xml/yml mapping driver with the annotation driver</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="lsmith">Lukas Kahwe</assignee>
                                <reporter username="lsmith">Lukas Kahwe</reporter>
                        <labels>
                    </labels>
                <created>Wed, 25 Jan 2012 16:37:55 +0000</created>
                <updated>Fri, 17 Aug 2012 08:17:16 +0000</updated>
                    <resolved>Fri, 17 Aug 2012 08:17:16 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="17361" author="dbu" created="Thu, 2 Feb 2012 09:32:06 +0000"  >&lt;p&gt;versioning is done now: &lt;a href=&quot;https://github.com/doctrine/phpcr-odm/pull/96&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/phpcr-odm/pull/96&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;but we miss tests for the non-annotation mappings&lt;/p&gt;</comment>
                    <comment id="17375" author="dbu" created="Tue, 7 Feb 2012 07:53:27 +0000"  >&lt;p&gt;how to proceed:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Refactor the tests about mapping to have abstract base tests to assert things, and one test for each annotation/yml/xml/php so we really test the same outcome &lt;a href=&quot;https://github.com/doctrine/phpcr-odm/tree/master/tests/Doctrine/Tests/ODM/PHPCR/Mapping&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/phpcr-odm/tree/master/tests/Doctrine/Tests/ODM/PHPCR/Mapping&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Check with code coverage of &lt;a href=&quot;https://github.com/doctrine/phpcr-odm/blob/master/lib/Doctrine/ODM/PHPCR/Mapping/Driver/AnnotationDriver.php&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/phpcr-odm/blob/master/lib/Doctrine/ODM/PHPCR/Mapping/Driver/AnnotationDriver.php&lt;/a&gt; and &lt;a href=&quot;https://github.com/doctrine/phpcr-odm/blob/master/lib/Doctrine/ODM/PHPCR/Mapping/ClassMetadata.php&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/phpcr-odm/blob/master/lib/Doctrine/ODM/PHPCR/Mapping/ClassMetadata.php&lt;/a&gt; if everything is covered&lt;/li&gt;
	&lt;li&gt;Fix missing annotations&lt;/li&gt;
	&lt;li&gt;Also test invalid metadata values or combinations - they should throw the same errors with all mappings&lt;/li&gt;
	&lt;li&gt;Check the documentation for meta data in the readme. add some note about xml/yml/php format (but do not repeat the doc, just explain the differences)&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    <comment id="17419" author="dbu" created="Mon, 13 Feb 2012 14:37:57 +0000"  >&lt;p&gt;initial test for annotations is added here, please evolve from this&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/phpcr-odm/commit/38f8bbc8b655aafd099287e18401248c44b40492&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/phpcr-odm/commit/38f8bbc8b655aafd099287e18401248c44b40492&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17847" author="cordoval" created="Sun, 15 Apr 2012 01:12:27 +0000"  >&lt;p&gt;hi dbu, lsmith, i gave thought to this and did some corrections &lt;a href=&quot;https://github.com/doctrine/phpcr-odm/pull/133&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/phpcr-odm/pull/133&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;however I am totally disoriented as i see two Mapping folders as follows:&lt;/p&gt;

&lt;p&gt;1. &lt;a href=&quot;https://github.com/doctrine/phpcr-odm/tree/master/tests/Doctrine/Tests/ODM/PHPCR/Functional/Mapping&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/phpcr-odm/tree/master/tests/Doctrine/Tests/ODM/PHPCR/Functional/Mapping&lt;/a&gt;&lt;br/&gt;
There is only 1 class here with a TODO which i found not very clear about what to do next&lt;/p&gt;

&lt;p&gt;2. &lt;a href=&quot;https://github.com/doctrine/phpcr-odm/tree/master/tests/Doctrine/Tests/ODM/PHPCR/Mapping&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/phpcr-odm/tree/master/tests/Doctrine/Tests/ODM/PHPCR/Mapping&lt;/a&gt;&lt;br/&gt;
These set of classes was already refactored by someone else before I came in and I guess the work is done&lt;/p&gt;

&lt;p&gt;I check the coverage as you said on the annotation driver class so it basically lacks the lifecycle callbacks usage, but where to put these tests in as i am confused&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;font color=&quot;red&quot;&gt; &lt;br/&gt;
     160               0 :                     if ($annot instanceof ODM\PrePersist) {                                                          
     161               0 :                         $metadata-&amp;gt;addLifecycleCallback($method-&amp;gt;getName(), Event::prePersist);                      
     162               0 :                     } elseif ($annot instanceof  ODM\PostPersist) {                                                  
     163               0 :                         $metadata-&amp;gt;addLifecycleCallback($method-&amp;gt;getName(), Event::postPersist);                     
     164               0 :                     } elseif ($annot instanceof ODM\PreUpdate) {                                                     
     165               0 :                         $metadata-&amp;gt;addLifecycleCallback($method-&amp;gt;getName(), Event::preUpdate);                       
     166               0 :                     } elseif ($annot instanceof ODM\PostUpdate) {                                                    
     167               0 :                         $metadata-&amp;gt;addLifecycleCallback($method-&amp;gt;getName(), Event::postUpdate);                      
     168               0 :                     } elseif ($annot instanceof ODM\PreRemove) {                                                     
     169               0 :                         $metadata-&amp;gt;addLifecycleCallback($method-&amp;gt;getName(), Event::preRemove);                       
     170               0 :                     } elseif ($annot instanceof ODM\PostRemove) {                                                    
     171               0 :                         $metadata-&amp;gt;addLifecycleCallback($method-&amp;gt;getName(), Event::postRemove);                      
     172               0 :                     } elseif ($annot instanceof  ODM\PostLoad) {                                                     
     173               0 :                         $metadata-&amp;gt;addLifecycleCallback($method-&amp;gt;getName(), Event::postLoad);                        
     174               0 :                     }                                                                                                &lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Also i am not very familiar with the schema of the annotation driver how to test so any explanation or help pointers would be great, thanks&lt;/p&gt;</comment>
                    <comment id="17848" author="cordoval" created="Sun, 15 Apr 2012 01:16:23 +0000"  >&lt;p&gt;I am so not using jira sorry guys, ---&amp;gt; &lt;a href=&quot;https://github.com/doctrine/phpcr-odm/pull/133&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/phpcr-odm/pull/133&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18073" author="dbu" created="Sat, 9 Jun 2012 20:23:22 +0000"  >&lt;p&gt;@craigmarvelley started working on this, promised a pull request soon&lt;/p&gt;</comment>
                    <comment id="18080" author="craigmarvelley" created="Mon, 11 Jun 2012 21:01:17 +0000"  >&lt;p&gt;I&apos;ve opened a PR here, there&apos;s still a bit left to be done that I&apos;m hoping to add in the next few days.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/phpcr-odm/pull/144&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/phpcr-odm/pull/144&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18102" author="dbu" created="Wed, 20 Jun 2012 12:03:25 +0000"  >&lt;p&gt;the pull request by craig has meanwhile been merged.&lt;/p&gt;

&lt;p&gt;there is still a bit of issues:&lt;/p&gt;

&lt;p&gt;the driver looks for the non-namespaced file. i.e. No mapping file found named &apos;/home/david/liip/symfony-cmf/cmf-sandbox/vendor/symfony-cmf/routing-extra-bundle/Symfony/Cmf/Bundle/RoutingExtraBundle/Resources/config/doctrine/Route.phpcr.xml&apos; for class &apos;Symfony\Cmf\Bundle\RoutingExtraBundle\Document\Route&apos;.&lt;/p&gt;

&lt;p&gt;but if i put that file there and have an error, he tells me Invalid mapping file &apos;Symfony.Cmf.Bundle.RoutingExtraBundle.Document.Route.phpcr.xml&apos;&lt;/p&gt;

&lt;p&gt;so the name determiner seems to be off a bit&lt;/p&gt;</comment>
                    <comment id="18335" author="dbu" created="Wed, 18 Jul 2012 22:08:39 +0000"  >&lt;p&gt;also, the mapped superclass feature makes no sense with phpcr-odm, we can simply inherit from document classes.&lt;/p&gt;</comment>
                    <comment id="18354" author="dbu" created="Fri, 20 Jul 2012 07:55:29 +0000"  >&lt;p&gt;actually mapped superclass seems to be relevant, but i did not yet understand it and the doc about it should be updated. see discussion in &lt;a href=&quot;https://github.com/doctrine/phpcr-odm/pull/144#issuecomment-7095570&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/phpcr-odm/pull/144#issuecomment-7095570&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18523" author="lsmith" created="Fri, 17 Aug 2012 08:17:16 +0000"  >&lt;p&gt;seems to me like reference/referrer/translation/versioning is all done .. so if there is anything left .. please open a new ticket&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>