Commit graph

17 commits

Author SHA1 Message Date
Jeremy Mikola 3fb9aaa56a Rename FOQ namespaces and services to FOS 2013-03-27 13:44:06 -04:00
Jeremy Mikola 118900120b [Provider] ProviderRegistry should return indexed provider arrays
Since Provider instances do not know the index or type for which they are responsible, it's helpful for the ProviderRegistry to include that information when returning multiple providers.
2012-03-12 12:07:51 -04:00
Jeremy Mikola e09225eb09 [Provider] Change provider construction (possible BC break)
* Created AbstractProvider class (for all DB services), which handles the default batch_size option.
 * The logger Closure is now optional for populate().
 * Removed unused Elastica_Type argument from Provider constructors.
 * Added unit tests for Doctrine's AbstractProvider class.
 * The extra argument (ManagerRegistry) for Doctrine providers is now an appended constructor argument, so the extension no longer needs to use different replacement indexes for Propel/Doctrine providers.
2012-03-12 12:07:51 -04:00
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