v3.0.0
- Fixed tracy panel styles (and stolen SVG icon from nette/database)
- Remove
LIMIT 1
forEntityRepository::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 everytryLoad()
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
& introducedMagicAccessors
that returns read-only collections from getters of collection properties. Otherwise, it's compatible withBaseEntity
. - 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
implementsDoctrine\Common\Collections\Selectable
- Render
UnitOfWork
panel when exception occurs duringEntityManager->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 extractingInlineParamsBuilder
(BC Break - if you're using inline parameters in QB->andWhere('e.name = :name', $name)
you have to re-enable it manually in config withqueryBuilderClassName: Kdyby\Doctrine\Dql\InlineParamsBuilder
). Also, you can now configure your own child ofQueryBuilder
as defaultQueryBuilder
. - 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 isdeprecated
- possible BC Break - Require doctrine/orm ~2.5
This release is for Nette ~2.3