Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: 1.2.0-ALPHA1
-
Fix Version/s: 1.2.0-ALPHA2
-
Component/s: Caching
-
Labels:None
-
Environment:ubuntu 8.04 apache2 php5 with symfony
Description
Tested with Doctrine_Cache_APC and Doctrine_Cache_Db with SQLite.
- The model:
Article:
actAs:
Timestampable:
Sluggable:
fields: [date, title]
I18n:
fields: [title, content]
actAs:
Sluggable:
fields: [title]
uniqueBy: [lang, title]
columns:
title: string(255)
date: date
content: clob
- The symfony code:
frontendConfiguration.class.php
public function configureDoctrine(Doctrine_Manager $manager) { if (sfConfig::get('sf_cache') == true) { $cacheDriver = new Doctrine_Cache_Apc(); $manager->setAttribute(Doctrine::ATTR_QUERY_CACHE, $cacheDriver); $manager->setAttribute( Doctrine::ATTR_QUERY_CACHE_LIFESPAN, sfConfig::get('app_cache_lifetime', 86000) ); $manager->setAttribute(Doctrine::ATTR_RESULT_CACHE, $cacheDriver); $manager->setAttribute( Doctrine::ATTR_RESULT_CACHE_LIFESPAN, sfConfig::get('app_cache_lifetime', 86000) ); } }
ArticleTable.class.php
public function fetchAll() { return Doctrine_Query::create() ->from('Article a') ->leftJoin('a.Translation t') ->orderby('a.date DESC') ->useQueryCache()->useResultCache() ->execute(); }
- The Result:
500 | Internal Server Error | Doctrine_Record_UnknownPropertyException
Unknown record property / related component "title" on "Article"
Would it be possible to have a test case included?