<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sun May 19 12:50:17 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/DC-1029/DC-1029.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>[DC-1029] Extensions of Doctrine_Template_I18n incompatible with Doctrine_Import</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1029</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Extending Doctrine_Template_I18n class make Doctrine_Import on YAML data with translation fails...&lt;/p&gt;

&lt;p&gt;Why ? Just because of this line :&lt;/p&gt;

&lt;p&gt;Doctrine_Import.php, line 135 :&lt;br/&gt;
                if ($table-&amp;gt;hasRelation($key) &amp;amp;&amp;amp; is_array($value) &amp;amp;&amp;amp; ! $table-&amp;gt;hasTemplate(&apos;Doctrine_Template_I18n&apos;)) {&lt;/p&gt;

&lt;p&gt;In fact, having a template named &quot;Doctrine_Template_I18n&quot; is not strong enough to be sure that the current object has an I18n behavior.&lt;/p&gt;


&lt;p&gt;The bug is very simple to reproduce :&lt;/p&gt;

&lt;p&gt;1. Get a classic I18n fixtures like :&lt;/p&gt;

&lt;p&gt;Article:&lt;br/&gt;
  Translation:&lt;br/&gt;
     en:&lt;br/&gt;
       title: Lorem Ipsum&lt;/p&gt;

&lt;p&gt;2. Then make a simple extension of the I18n template (do not do anything else but extends the Doctrine_Template_I18n class) :&lt;/p&gt;

&lt;p&gt;class My_Doctrine_Template_I18n extends Doctrine_Template_I18n {}&lt;/p&gt;

&lt;p&gt;3. Load the extension, assign it to your model and try to import your fixtures again. It will not work anymore.&lt;/p&gt;


&lt;p&gt;Thanks&lt;/p&gt;</description>
                <environment>Windows 7, XAMPP 1.7.4 with APC and Curl, symfony 1.4.8</environment>
            <key id="12931">DC-1029</key>
            <summary>Extensions of Doctrine_Template_I18n incompatible with Doctrine_Import</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/trivial.png">Trivial</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="loops">Pierrot Evrard</reporter>
                        <labels>
                    </labels>
                <created>Thu, 18 Aug 2011 11:16:34 +0000</created>
                <updated>Thu, 18 Aug 2011 11:36:19 +0000</updated>
                                    <version>1.2.4</version>
                                                <component>Data Fixtures</component>
                <component>I18n</component>
                <component>Import/Export</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16350" author="loops" created="Thu, 18 Aug 2011 11:18:51 +0000"  >&lt;p&gt;See this patch where to check if the table has the I18n plugin, I check if one of the templates has a getI18n() method.&lt;/p&gt;

&lt;p&gt;This is probably not strong enough but it can do the job until you find a better solution.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                    <comment id="16351" author="loops" created="Thu, 18 Aug 2011 11:36:19 +0000"  >&lt;p&gt;Another possibility to check that templates are I18n template, will be to create an Doctrine_I18n_Interface. Also, every template that include this interface can be considered as I18n templates.&lt;/p&gt;

&lt;p&gt;What do you think about that ?&lt;/p&gt;

&lt;p&gt;NB: May the interface can define the method getI18n() to be declared...&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11056" name="DC-1029.patch" size="1184" author="loops" created="Thu, 18 Aug 2011 11:18:51 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>