<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sat May 25 15:07:25 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/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+10032+AND+labels+%3D+cache&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+10032+AND+labels+%3D+cache</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="2" total="2"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DDC-2164] Extend the cache support to eAccelerator</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2164</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;It would be nice if the Doctrine caching drivers would support the eAccelerator library.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14262">DDC-2164</key>
            <summary>Extend the cache support to eAccelerator</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="noise085">Enea Bette</reporter>
                        <labels>
                        <label>cache</label>
                        <label>drivers</label>
                    </labels>
                <created>Fri, 23 Nov 2012 08:29:26 +0000</created>
                <updated>Mon, 26 Nov 2012 08:54:28 +0000</updated>
                                    <version>2.4</version>
                <version>3.0</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19037" author="ocramius" created="Fri, 23 Nov 2012 08:38:55 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=noise085&quot; class=&quot;user-hover&quot; rel=&quot;noise085&quot;&gt;Enea Bette&lt;/a&gt; eAccelerator is known for being stripping comments from cached source (making it impossible to use annotations)... Do you happen to know if this is fixed? Supporting it as cache driver is fine btw, I just wonder how many users will start thinking of using eAccelerator and then will be facing this huge limitation.&lt;/p&gt;</comment>
                    <comment id="19063" author="noise085" created="Mon, 26 Nov 2012 08:52:19 +0000"  >&lt;p&gt;I know that eAccelerator has this issue. It would be nice if we could utilize it with XML, YML and PHP based mapping though.&lt;br/&gt;
Do you know if the same problem would appear with these kinds of mapping strategies?&lt;/p&gt;

&lt;p&gt;To give response to your question (eAccelerator and annotations incompatibility), there is a pull request on github, &lt;a href=&quot;https://github.com/eaccelerator/eaccelerator/issues/19&quot; class=&quot;external-link&quot;&gt;https://github.com/eaccelerator/eaccelerator/issues/19&lt;/a&gt; . &lt;/p&gt;

&lt;p&gt;It seems that in the future these could be resolved, and at that time it would be very nice to have that supported with doctrine (symfony2 already has support for this library).&lt;/p&gt;

&lt;p&gt;&quot;I just wonder how many users will start thinking of using eAccelerator and then will be facing this huge limitation&quot;. Sometimes users just does not have a choice. Imagine the case when you have a hosted site that requires caching functionalities and the only available cache library is eAccelerator (as just in my case). You would be fried as a chicken hehe &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2155] problem with DQL and cache</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2155</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have a problem when I get database records through a query DQL&lt;br/&gt;
  and then they are changed by another application&lt;br/&gt;
If I repeat the query, Doctrine always return the first value, not the current value of the base&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&amp;lt;?php

&lt;span class=&quot;code-comment&quot;&gt;// bootstrap
&lt;/span&gt;
$cache = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\Cache\ArrayCache();
$config = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Doctrine\ORM\Configuration();
$config-&amp;gt;setQueryCacheImpl($cache);
$conn = array(
				&apos;dbname&apos; =&amp;gt; $database_name,
				&apos;user&apos; =&amp;gt; $cnx_user,
				&apos;password&apos; =&amp;gt; $cnx_pass,
				&apos;host&apos; =&amp;gt; $cnx_host,
				&apos;driver&apos; =&amp;gt; $cnx_type,
				&apos;charset&apos; =&amp;gt; &apos;utf8&apos;,
				&apos;driverOptions&apos; =&amp;gt; array( 1002 =&amp;gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;SET NAMES &apos;utf8&apos;&quot;&lt;/span&gt; )
				);

			$em = Doctrine\ORM\EntityManager::create($conn, $config);




&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt;(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;){
   $dql = &lt;span class=&quot;code-quote&quot;&gt;&quot;SELECT s from Register s WHERE s.id = 1&quot;&lt;/span&gt;;
   $query = $em-&amp;gt;createQuery($dql);
&lt;span class=&quot;code-comment&quot;&gt;// the next line is optional, produces same result
&lt;/span&gt;   $query-&amp;gt;useResultCache(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;);
   $res = $query-&amp;gt;getResult();
   $orm = reset($res);
   	
   echo &lt;span class=&quot;code-quote&quot;&gt;&quot; regiter id :&quot;&lt;/span&gt;.$orm-&amp;gt;getId().&lt;span class=&quot;code-quote&quot;&gt;&quot;  field &quot;&lt;/span&gt;$orm-&amp;gt;getText().&lt;span class=&quot;code-quote&quot;&gt;&quot;\n&quot;&lt;/span&gt;;

}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I run this code in a terminal, and then edit the registry (field text), but the terminal still shows the same result&lt;/p&gt;</description>
                <environment>linux , php 5.4.8, mysql 5.5.28</environment>
            <key id="14243">DDC-2155</key>
            <summary>problem with DQL and cache</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="gabrielnn77">gabriel sancho</reporter>
                        <labels>
                        <label>cache</label>
                        <label>dql</label>
                    </labels>
                <created>Sun, 18 Nov 2012 22:57:30 +0000</created>
                <updated>Sun, 25 Nov 2012 11:59:34 +0000</updated>
                    <resolved>Sun, 25 Nov 2012 11:59:34 +0000</resolved>
                            <version>2.3</version>
                                                <component>DQL</component>
                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19048" author="beberlei" created="Sun, 25 Nov 2012 11:59:34 +0000"  >&lt;p&gt;Doctrine uses an IdentityMap pattern which leads to this issue.&lt;/p&gt;

&lt;p&gt;You need to call &quot;EntityManager#clear()&quot; to clean the in memory cache of Doctrine and fetch records from the database again. or call &quot;EntityManager#refresh($entity)&quot;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>