Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 37 lines (24 sloc) 1.94 kb
a53c2fb [2.0] Code cleanups. Preparations for DDC-193. Fixed DDC-399, type confi...
romanb authored
1 # Upgrade from 2.0-ALPHA3 to 2.0-ALPHA4
2
3 ## CLI Controller changes
4
5 CLI main object changed its name and namespace. Renamed from Doctrine\ORM\Tools\Cli to Doctrine\Common\Cli\CliController.
6 Doctrine\Common\Cli\CliController now only deals with namespaces. Ready to go, Core, Dbal and Orm are available and you can subscribe new tasks by retrieving the namespace and including new task. Example:
7
8 [php]
9 $cli->getNamespace('Core')->addTask('my-example', '\MyProject\Tools\Cli\Tasks\MyExampleTask');
10
11
12 ## CLI Tasks documentation
13
14 Tasks have implemented a new way to build documentation. Although it is still possible to define the help manually by extending the basicHelp and extendedHelp, they are now optional.
15 With new required method AbstractTask::buildDocumentation, its implementation defines the TaskDocumentation instance (accessible through AbstractTask::getDocumentation()), basicHelp and extendedHelp are now not necessary to be implemented.
16
17 ## Changes in Method Signatures
18
19 * A bunch of Methods on both Doctrine\DBAL\Platforms\AbstractPlatform and Doctrine\DBAL\Schema\AbstractSchemaManager
20 have changed quite significantly by adopting the new Schema instance objects.
21
22 ## Renamed Methods
23
24 * Doctrine\ORM\AbstractQuery::setExpireResultCache() -> expireResultCache()
25 * Doctrine\ORM\Query::setExpireQueryCache() -> expireQueryCache()
26
27 ## SchemaTool Changes
28
29 * "doctrine schema-tool --drop" now always drops the complete database instead of
30 only those tables defined by the current database model. The previous method had
31 problems when foreign keys of orphaned tables pointed to tables that were schedulded
32 for deletion.
33 * Use "doctrine schema-tool --update" to get a save incremental update for your
34 database schema without deleting any unused tables, sequences or foreign keys.
35 * Use "doctrine schema-tool --complete-update" to do a full incremental update of
36 your schema.
Something went wrong with that request. Please try again.