Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: 2.0-RC1
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
I'm currently working on some glue classes to integrate Doctrine 2 into an existing Zend Framework project.
To be able to re-use our caching classes (which use Zend_Cache), I wrote a \Doctrine\Common\Cache\AbstractCache implementation for Zend_Cache:
However Zend_Cache only allows "a-zA-Z0-9_" for cache keys, while Doctrine seems to allow anything, and Doctrine ORM seems to use at lease "\" and "$" for metadata storage ("Entity\Article\Category$CLASSMETADATA").
What do you think is the most elegant way to solve this?
- Should Doctrine also limit the cache key characters?
- How could _encodeId and _decodeId be implemented?
Activity
Roman S. Borschel
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 2.0 [ 10021 ] |
Roman S. Borschel
made changes -
| Fix Version/s | 2.0-RC1 [ 10091 ] | |
| Fix Version/s | 2.0 [ 10021 ] |
Benjamin Eberlei
made changes -
| Assignee | Roman S. Borschel [ romanb ] | Benjamin Eberlei [ beberlei ] |
Benjamin Eberlei
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Benjamin Eberlei
made changes -
| Status | In Progress [ 3 ] | Open [ 1 ] |
Benjamin Eberlei
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Won't Fix [ 2 ] |
Benjamin Eberlei
made changes -
| Workflow | jira [ 11252 ] | jira-feedback [ 14396 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback [ 14396 ] | jira-feedback2 [ 16260 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 16260 ] | jira-feedback3 [ 18513 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-533, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
Currently the cached results and queries are saved with an md5 key anyway, so this works out of the box.
The only ones that make problems are metadata cache, which stores "Entity\Article\Category$CLASSMETADATA". As the Doctrine caching layer can be used separate from the other components, it may be a good idea to still allow arbitrary keys and mapping them internally.