Tim Nagel
3bb2f384ba
Provider refactoring
2015-03-14 19:53:05 +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
Gnucki
be75b387a5
Add slice fetching abstraction
2014-10-13 15:41:29 +02:00
Gnucki
7fa7e44bee
Fix mongodb populate falling down performances for big collections
2014-10-08 10:44:49 +02:00
Tim Nagel
1d5fe44ca4
Fix CS from scrutiniser-ci
2014-09-21 20:12:30 +10:00
Tim Nagel
2029aba76a
Ability for FOSElasticaBundle to disable persistence backend logging for population
...
Update documentation and changelog
2014-05-23 22:46:14 +10:00
caponica
b0841c18ec
Changed QueryBuilder method from ->where() to ->andWhere() so it works with customised QueryBuilders which have an existing where clause (instead of over-writing any existing DQL 'where' part)
2014-05-08 00:26:30 +01:00
Peter Mitchell
2009f88109
Make fetchSlice compatible with custom repo method
...
If a user configures query_builder_method for the doctrine provider, and
does not alias the root entity to equal Provider::ENTITY_ALIAS then a
DQL error will occur during index population.
> [Semantical Error] [...] near 'a.id ASC': Error: 'a' is not defined.
Provider::countObjects already handles this by dynamically fetching the
alias with QueryBuilder::getRootAliases, and Provider::fetchSlice should
be doing the same.
nb. "Provider" refers to FOS\ElasticaBundle\Doctrine\ORM\Provider
2014-03-19 08:40:58 -04:00
nurikabe
1d700261ab
Refactor to a single Listener class. Update tests.
2013-12-02 12:42:04 +00:00
nurikabe
5ec652063d
Don't need postRemove.
2013-12-01 21:48:41 +00:00
nurikabe
f258c9ddc0
Exploratory development for https://github.com/FriendsOfSymfony/FOSElasticaBundle/issues/410
2013-12-01 21:17:55 +00:00
Tim Nagel
3c26f157aa
Merge branch '2.1.x'
...
Conflicts:
Tests/ResetterTest.php
2013-11-11 13:30:29 +11:00
Tim Nagel
9b6b0b0148
Add query_builder_method option to the transformers
2013-11-11 13:14:02 +11:00
Antonio J. García Lagar
170864a30d
Removes sort call
2013-07-04 08:07:00 +02:00
Antonio J. García Lagar
b11b4299ef
An orderBy DQL part is required to avoid feching the same row twice
2013-06-19 12:36:59 +02:00
ShurtMaiden
1f26318875
Avoid using a feature not supported in PHP5.3
2013-03-28 12:15:02 +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
Richard Miller
2732296aed
Merge branch '2.0'
...
Conflicts:
Doctrine/AbstractElasticaToModelTransformer.php
Doctrine/MongoDB/ElasticaToModelTransformer.php
Doctrine/ORM/ElasticaToModelTransformer.php
composer.json
2012-07-10 21:37:23 +01:00
Richard Miller
1626910299
Removed unneccesary argument from findByIdentifiers methods
2012-07-10 21:28:31 +01:00
Jeremy Mikola
86cdaa7c3c
[Listener] Support additional indexable callback types
...
Support service/method tuples as indexable callbacks. Closures are also supported, although they cannot be injected by the service container.
The indexable callback is now injected via a setter and validated when set (instead of during event processing).
2012-04-16 12:30:30 -04:00
r1pp3rj4ck
0f46f4b96d
[Listener] Allow conditional indexing based on callback method
...
Added optional is_indexable_callback config param to persistence. If this is a method on the entity, the listener will only process it if the method returns true. Also updated documentation.
2012-04-10 14:36:25 -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
Richard Miller
d67cd8f9ba
Merge remote-tracking branch 'origin/2.0'
2012-02-03 12:40:42 +00:00
Richard Miller
81bd07a90b
Updated identifier field fetching in listener
2012-02-02 19:37:49 +00:00
Richard Miller
1d2887a83b
Cleaned up doctrine removal fix changes
2012-01-26 09:59:58 +00:00
Richard Miller
65be0a415e
Fixing issue with removing mapped Doctrine entities/documents
2012-01-25 19:51:10 +00:00
Richard Miller
b4ebbc0a55
Merge branch '2.0'
2012-01-12 19:59:08 +00:00
Richard Miller
851c461fa8
Removed exception catching in Doctrine listeners
2012-01-12 19:38:56 +00:00
Richard Miller
0e3fedf3fb
Switched to manager registry for doctrine integration
2011-12-13 10:22:24 +00:00
ornicar
e10d466215
Catch and log all listener exceptions
2011-08-11 09:37:38 -07:00
Borbás Imre Sándor
071fd29fbe
Fixed compatibility with Doctrine2's createQueryBuilder method (it should be called with a mandatory parameter).
2011-07-02 17:52:40 +02:00
ornicar
b7c4317f6e
Catch listeners elastica exceptions and log them
2011-06-30 16:37:52 -07:00
Andrew
3279ee9ef1
Removed explicit binding to array as it causes no results to be returned.
2011-06-20 12:10:55 -07:00
Christophe Coevoet
84c98d5b70
Switched to use a query parameter in the ORM implementation
2011-06-18 14:56:18 +02:00
ornicar
6fee4131f4
Doctrine integration refactoring, adds realtime index updates
2011-06-07 11:16:19 -07:00
ornicar
2a60e57488
Fix typo in orm transformer
2011-05-14 19:19:38 -07:00
ornicar
91b78da714
Fix bug in orm transformer
2011-05-14 18:54:35 -07:00
Christophe Coevoet
1387205d94
Implemented the ORM transformer
2011-05-10 01:10:45 +02:00
ornicar
1eff840c99
Move doctrine related logic to Doctrine\ORM and Doctrine\MongoDB
2011-05-09 15:31:20 -07:00