v2.0.3
版本发布时间: 2014-07-28 08:11:00
Kdyby/Doctrine最新发布版本:v3.3.1(2018-08-19 02:43:40)
- Fixed autoJoin with multiple conditions on the same relation
- Extracted and fixed
Helpers::separateParameters()
- Add support for subquery to
NativeQueryBuilder
, thx @pilec - Fixed configuring multiple connections
- Use Nette's RobotLoader in
AnnotationDriver
to search for entities, If you don't wanna use it, then instead of%appDir%/models
orannotations(%appDir%/models)
(which is default) you have to specify the default implementation classname
doctrine:
metadata:
App: Doctrine\ORM\Mapping\Driver\AnnotationDriver(%appDir%/models)
Why would you wanna do that? Well, the Doctrine's implementation just crawls a directory and requires everything that remotely resembles PHP file. If you happen to have some scripts laying around, they will be triggered. On the other hand, the Doctrine's implementation is about 10x faster.
On a directory with 800 files, the new implementation with RobotLoader
takes more than 10 seconds. On the other hand, the files are crawled only once at compile-time.