#1636: Result caching for queries with joins is not fully working
----------------------+-----------------------------------------------------
  Reporter:  esycat   |       Owner:  romanb               
      Type:  defect   |      Status:  new                  
  Priority:  major    |   Milestone:  Unknown              
 Component:  Caching  |     Version:  1.0.3                
Resolution:           |    Keywords:                       
  Has_test:  1        |    Mystatus:  Pending Core Response
 Has_patch:  0        |  
----------------------+-----------------------------------------------------
Old description:

> When using result cache for queries with joins, data of joined model is
> not being cached and/or reconstructed back from the cache properly, which
> leads to new unexpected individual queries for lazy loading.
>
> [http://groups.google.com/group/doctrine-
> user/browse_thread/thread/f5c40d3f2dfb724d Discussion].
>
> PHP 5.2.6 with Suhosin-Patch 0.9.6.2 (cli)[[BR]]
> Doctrine 1.0.3

New description:

 When using result cache for queries with joins, data of joined models is
 not being cached and/or reconstructed back from the cache properly, which
 leads to new unexpected individual queries for lazy loading.

 [http://groups.google.com/group/doctrine-
 user/browse_thread/thread/f5c40d3f2dfb724d Discussion].

 PHP 5.2.6 with Suhosin-Patch 0.9.6.2 (cli)[[BR]]
 Doctrine 1.0.3

Comment (by esycat):

 As I have investigated, data of joined models is not cached at all. The
 reason is that `Doctrine_Record::serialize()` removes relations before
 serialization:
 {{{
 unset($vars['_references']);
 }}}

 When I commented out this line, my test case passes successfully, but I'm
 not sure would it be OK to just delete this line?

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1636#comment:2>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to