Commit graph

14 commits

Author SHA1 Message Date
Jeremy Mikola b360a36737 [Provider] Create ProviderRegistry service (BC break)
This introduces a registry service for persistence providers.

Previously, tagging one or more provider services would cause AddProviderPass to clobber the default providers created by the bundle's extension class. Now, the extension class tags its created providers and allows them to be registered via RegisterProvidersPass just like custom providers.

BC break: Custom providers tagged "foq_elastica.provider" must now specify a "type" attribute on their tag. An "index" attribute is optional (the default ES index will be used by default).
2012-03-12 12:07:51 -04:00
ornicar 6fee4131f4 Doctrine integration refactoring, adds realtime index updates 2011-06-07 11:16:19 -07:00
ornicar 1eff840c99 Move doctrine related logic to Doctrine\ORM and Doctrine\MongoDB 2011-05-09 15:31:20 -07:00
ornicar 71314264f4 Improve Doctrine ORM support / thanks @Stof for the fancy count code 2011-05-09 14:17:38 -07:00
ornicar a800289481 Fix DoctrineORMProvider::countObjects() using PHP_INT_MAX 2011-05-09 12:57:07 -07:00
ornicar 05ab288051 Move more inconsistent code to mongodb and orm implementations 2011-05-09 10:56:27 -07:00
ornicar 1ba79f83cf Make use of the doctrine provider countObjects method 2011-05-09 09:56:31 -07:00
ornicar aed89aa8dc Add DoctrineMongoDBProvider and DoctrineORMProvider to deal with count inconsistency 2011-05-09 09:48:25 -07:00
ornicar f071c98143 Remove ObjectManager typehints to ensure doctrine 2.0 compatibility 2011-05-09 09:23:35 -07:00
ornicar 0db0490be5 Complete provider, finder, transformers and configuration refactoring 2011-04-27 00:59:04 -07:00
ornicar eba893495d Introduce builtin doctrine provider and finder 2011-04-20 13:53:59 -07:00
ornicar 0dd0b395f1 Inject the transformer in the doctrine provider 2011-04-19 20:03:54 -07:00
ornicar d64e908988 Allow to configure the doctrine provider query builder creation command 2011-04-18 16:09:16 -07:00
ornicar b4f610bcd6 Add doctrine provider implementation 2011-04-17 10:56:32 -07:00