UPGRADE_TO_ALPHA4 1.9KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Upgrade from 2.0-ALPHA3 to 2.0-ALPHA4
  2. ## CLI Controller changes
  3. CLI main object changed its name and namespace. Renamed from Doctrine\ORM\Tools\Cli to Doctrine\Common\Cli\CliController.
  4. 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:
  5. [php]
  6. $cli->getNamespace('Core')->addTask('my-example', '\MyProject\Tools\Cli\Tasks\MyExampleTask');
  7. ## CLI Tasks documentation
  8. 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.
  9. 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.
  10. ## Changes in Method Signatures
  11. * A bunch of Methods on both Doctrine\DBAL\Platforms\AbstractPlatform and Doctrine\DBAL\Schema\AbstractSchemaManager
  12. have changed quite significantly by adopting the new Schema instance objects.
  13. ## Renamed Methods
  14. * Doctrine\ORM\AbstractQuery::setExpireResultCache() -> expireResultCache()
  15. * Doctrine\ORM\Query::setExpireQueryCache() -> expireQueryCache()
  16. ## SchemaTool Changes
  17. * "doctrine schema-tool --drop" now always drops the complete database instead of
  18. only those tables defined by the current database model. The previous method had
  19. problems when foreign keys of orphaned tables pointed to tables that were schedulded
  20. for deletion.
  21. * Use "doctrine schema-tool --update" to get a save incremental update for your
  22. database schema without deleting any unused tables, sequences or foreign keys.
  23. * Use "doctrine schema-tool --complete-update" to do a full incremental update of
  24. your schema.