Commit graph

43 commits

Author SHA1 Message Date
Tim Nagel e933a49d07 Use deprecated optionsResolver interface 2015-04-02 10:23:30 +11:00
Tim Nagel 69470d7e20 Fix the previous release. 2015-03-27 12:01:39 +11:00
Tim Nagel b6e01cd332 Fix issues with Provider's batch_size and PopulateCommand's batch_size 2015-03-27 11:45:03 +11:00
Tim Nagel 3bb2f384ba Provider refactoring 2015-03-14 19:53:05 +11:00
Tim Nagel d4f01e8d2e Cast result from ExpressionLanguage eval to bool 2015-03-14 18:48:59 +11:00
Tim Nagel 72a9dfa267 Indexable service improvements 2015-03-14 16:08:50 +11:00
Tim Nagel bb4618c101 Even more QA 2015-03-13 19:34:56 +11:00
Tim Nagel 89db88c2a0 CS fixes for 3.1 2015-03-12 21:58:02 +11:00
Tim Nagel 345b5d423d Merge cs-fixes-30 into cs-fixes-31 2015-03-12 21:57:26 +11:00
Tim Nagel dd388e4b25 CS fixes 2015-03-12 21:20:00 +11:00
Tim Nagel 5b88baeca6 Merge branch 'pr/744'
Conflicts:
	CHANGELOG-3.1.md
	Command/PopulateCommand.php
2015-03-11 22:17:14 +11:00
Tim Nagel 0009c858a7 Fixes for errors when with the progress closure 2015-03-11 21:31:23 +11:00
Tim Nagel f6df88cc67 Merge branch 'master' into pr/744
Conflicts:
	Command/PopulateCommand.php
2015-03-11 14:11:18 +11:00
Tim Nagel 67c0b79505 Tidy up ProgressBar use, move most calculations for loggerClosure
into PopulateCommand rather than in AbstractProvider
2015-01-25 19:53:58 +11:00
Tim Nagel 77f2b99a3e Fix Indexable tests 2014-06-26 18:01:34 +10:00
Tim Nagel 96dc613c71 Fix array format for indexable_callback 2014-06-26 17:46:29 +10:00
Tim Nagel aafb8c8e89 Fix indexable callbacks with alias based indexes 2014-06-17 12:03:38 +10:00
Tim Nagel e54cc3c243 Implement callback checking in the provider 2014-06-16 16:17:04 +10:00
Tim Nagel 66d2410999 Move Indexable callback calculations to a new service 2014-06-16 15:57:42 +10:00
Karel Souffriau 1c74f61b4e AbstractProvider cleanup 2014-02-20 12:57:10 +01:00
Karel Souffriau b8cc6d758c CS fix in AbstractProvider 2014-02-19 09:31:22 +01:00
Fabien Somnier 48b785e876 New method getMemoryUsage to get RAM information message 2014-02-03 18:12:20 +01:00
Luis Cordova cacb40286c clean ups 2013-11-20 08:11:15 -05:00
Matyas Somfai 43e026500c added new options to fos:elastica:populate command and options array parameter to ProviderInterface
removed assume-yes option as the no-interaction option has the same purpose
2013-10-30 00:02:34 +01:00
Jeremy Mikola 440c36f537 Merge remote-tracking branch 'cevou/master' into pr/245
Conflicts:
	Command/PopulateCommand.php
	Command/SearchCommand.php
	DependencyInjection/Configuration.php
	Doctrine/AbstractElasticaToModelTransformer.php
	Doctrine/AbstractListener.php
	Doctrine/MongoDB/ElasticaToModelTransformer.php
	Doctrine/ORM/ElasticaToModelTransformer.php
	Doctrine/RepositoryManager.php
	Finder/TransformedFinder.php
	Paginator/PaginatorAdapterInterface.php
	Paginator/RawPaginatorAdapter.php
	Persister/ObjectPersister.php
	Propel/ElasticaToModelTransformer.php
	Subscriber/PaginateElasticaQuerySubscriber.php
	Tests/DataCollector/ElasticaDataCollectorTest.php
	Tests/Doctrine/AbstractProviderTest.php
	Tests/Doctrine/RepositoryManagerTest.php
	Tests/Manager/RepositoryManagerTest.php
	Tests/RepositoryTest.php
	Transformer/ElasticaToModelTransformerCollection.php
	composer.json
2013-03-27 14:58:34 -04:00
Jeremy Mikola 3fb9aaa56a Rename FOQ namespaces and services to FOS 2013-03-27 13:44:06 -04:00
cevou cbe6071969 Code cleanup
- updated deprecated calls
- cleaned up PHPDoc comments
2013-03-02 12:23:44 +01: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