Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / common / UPGRADE_TO_2_2
1 This document details all the possible changes that you should investigate when 
2 updating your project from Doctrine Common 2.1 to 2.2:
3
4 ## Annotation Changes
5
6 - AnnotationReader::setIgnoreNotImportedAnnotations has been removed, you need to 
7   add ignore annotation names which are supposed to be ignored via
8   AnnotationReader::addGlobalIgnoredName
9   
10 - AnnotationReader::setAutoloadAnnotations was deprecated by the AnnotationRegistry
11   in 2.1 and has been removed in 2.2
12
13 - AnnotationReader::setEnableParsePhpImports was added to ease transition to the new
14   annotation mechanism in 2.1 and is removed in 2.2
15
16 - AnnotationReader::isParsePhpImportsEnabled is removed (see above)
17
18 - AnnotationReader::setDefaultAnnotationNamespace was deprecated in favor of explicit
19   configuration in 2.1 and will be removed in 2.2 (for isolated projects where you
20   have full-control over _all_ available annotations, we offer a dedicated reader
21   class ``SimpleAnnotationReader``)
22
23 - AnnotationReader::setAnnotationCreationFunction was deprecated in 2.1 and will be
24   removed in 2.2. We only offer two creation mechanisms which cannot be changed
25   anymore to allow the same reader instance to work with all annotations regardless
26   of which library they are coming from.
27   
28 - AnnotationReader::setAnnotationNamespaceAlias was deprecated in 2.1 and will be
29   removed in 2.2 (see setDefaultAnnotationNamespace)
30
31 - If you use a class as annotation which has not the @Annotation marker in it's 
32   class block, we will now throw an exception instead of silently ignoring it. You
33   can however still achieve the previous behavior using the @IgnoreAnnotation, or
34   AnnotationReader::addGlobalIgnoredName (the exception message will contain detailed
35   instructions when you run into this problem).
36
37 ## Cache Changes
38   
39 - Renamed old AbstractCache to CacheProvider
40
41 - Dropped the support to the following functions of all cache providers:
42
43  - CacheProvider::deleteByWildcard
44
45  - CacheProvider::deleteByRegEx
46
47  - CacheProvider::deleteByPrefix
48
49  - CacheProvider::deleteBySuffix
50
51 - CacheProvider::deleteAll will not remove ALL entries, it will only mark them as invalid
52
53 - CacheProvider::flushAll will remove ALL entries, namespaced or not
54
55 - Added support to MemcachedCache
56
57 - Added support to WincacheCache
58
59 ## ClassLoader Changes
60
61 - ClassLoader::fileExistsInIncludePath() no longer exists. Use the native stream_resolve_include_path() PHP function