Skip to content

v3.0.0

Compare
Choose a tag to compare
@fprochazka fprochazka released this 08 Nov 14:34
· 234 commits to master since this release
  • Fixed tracy panel styles (and stolen SVG icon from nette/database)
  • Remove LIMIT 1 for EntityRepository::fetchOne() by @jasin755 (BC Break - but it fixes when you're selecting toMany with join)
  • EntityRepository::countBy() now returns integer type by @richard-ejem
  • Fix extension methods in BaseEntity & MagicAccessors (Nette\Callback is deprecated)
  • QueryBuilder: auto join ORDER BY can sort by aggregation function result by @EaredSeal
  • Add configuration for default query hints by @davidkudera
  • Added Kdyby\Doctrine\Entity\Attributes\UniversallyUniqueIdentifier trait by @klimesf
  • Fix RobotLoader::initialize() is incorrectly called for every tryLoad() by @lm (relevant to proxy autoloading)
  • Panel: Improved highlightQuery method by @enumag
  • RepositoryFactory: implemented handling of repositories as services (big feature, possibly might break some apps that already use this in some hackish way)
  • NonLockingUniqueInserter supports single table inheritance by @mkoubik
  • Deprecate BaseEntity & introduced MagicAccessors that returns read-only collections from getters of collection properties. Otherwise, it's compatible with BaseEntity.
  • Deprecate EntityManager::onDaoCreate()
  • DI: no longer autoregister AnnotationsExtension, but throw instead (Nette deprecated this feature)
  • Remove custom --debug-mode from CLI commands (compatibility with Kdyby/Console#v2.5.0 )
  • Introduce NativeQueryBuilder::setDefaultRenameMode()
  • Fixed clearing annotations cache
  • Implemented LazyCollection (might wanna push this to doctrine/common some day)
  • Preserve associative keys in ResultSet::toArray()
  • Fix nested iterations over ResultSet
  • ReadOnlyCollectionWrapper implements Doctrine\Common\Collections\Selectable
  • Render UnitOfWork panel when exception occurs during EntityManager->flush()
  • Catch warnings in Connection::ping()
  • EntityRepository: fetch with different hydration mode by @VaclavSir
  • Panel: highlight Doctrine\DBAL\Exception\DriverException
  • Fix contract BC Break in QueryBuilder by extracting InlineParamsBuilder (BC Break - if you're using inline parameters in QB ->andWhere('e.name = :name', $name) you have to re-enable it manually in config with queryBuilderClassName: Kdyby\Doctrine\Dql\InlineParamsBuilder). Also, you can now configure your own child of QueryBuilder as default QueryBuilder.
  • Add QueryObject::onPostFetch() to allow multiple initializers
  • Drop PHP 5.3
  • Panel: show cache statistics for 2nd level cache, if it's enabled
  • DI: basic 2nd lvl cache config section
  • The custom Events::postLoadRelations is useless in Doctrine 2.5, so everything related to it is removed and the event is deprecated - possible BC Break
  • Require doctrine/orm ~2.5

This release is for Nette ~2.3