Commit graph

1037 commits

Author SHA1 Message Date
Dylan Schoenmakers 088452cf88 Added example to usage.md
Added example for using a custom query builder method to usage.md.
2014-04-10 09:25:40 +02:00
Tim Nagel 1bc085141b Fix logger option for listeners 2014-04-10 13:14:03 +10:00
Tim Nagel a97ed80aee Merge branch 'nurikabe-master'
Conflicts:
	Resources/doc/types.md
2014-04-10 13:06:22 +10:00
Tim Nagel b3fdf7b256 Logger for a listener is false by default 2014-04-10 13:05:23 +10:00
nurikabe f07e55417d Re-throw exception if no logger defined 2014-04-07 16:16:37 -04:00
Joshua Worden 22e5a1d4ab CS fix 2014-04-07 10:58:11 -05:00
Tim Nagel d7302847e4 Merge pull request #542 from hugohenrique/patch-1
fix link to documentation of custom repositories
2014-04-07 09:11:12 +10:00
Hugo Henrique 998c69bfc3 Update usage.md
This link to documentation custom repositories is broken
2014-04-06 15:17:02 -03:00
nurikabe a483471694 Set listener loggers to fos_elastica.logger if null 2014-04-04 22:56:47 -04:00
Tim Nagel ab3587980c Merge pull request #539 from nurikabe/patch-2
Fix documentation about `immediate`
2014-04-05 10:34:09 +11:00
Tim Nagel 10fcbfc135 Merge pull request #538 from nurikabe/patch-1
Remove rogue paren
2014-04-05 10:30:36 +11:00
Evan Owens 53332eb057 Allow for catching/logging persistance errors per listener 2014-04-04 18:32:48 -04:00
Evan Owens 377b2843ba Fix documentation about immediate
Unless I misimplemented this, "immediate" means persist to ElasticSearch "immediately"; before flushing.  Default behavior is false; persist to ElasticSearch postFlush.
2014-04-05 07:12:16 +10:00
Evan Owens 10f6149f8c Remove rogue paren 2014-04-05 07:04:52 +10:00
Evan Owens 6f444f1ce8 Bulk upsert 2014-04-04 15:51:55 -04:00
nurikabe 49284a4963 Merge remote-tracking branch 'upstream/master' 2014-04-04 15:29:06 -04:00
Josh Worden b6e2583455 Added getDoctrineObject method to retrieve an entity or document from a LifecycleEventArgs instance in the unified Listener class 2014-04-04 10:47:50 -05:00
Tim Nagel d67d525b66 Merge pull request #485 from piotrantosik/elastica-knp-paginator-sort
Added knp paginator sort functionality to PaginateElasticaQuerySubscribe
2014-04-04 08:46:40 +11:00
Piotr Antosik 1bc148569b Added knp paginator sort functionality to PaginateElasticaQuerySubscriber 2014-04-03 10:44:18 +02:00
Patrick Zahnd 13c2d10e39 Added knp paginator sort functionality to PaginateElasticaQuerySubscriber 2014-04-03 00:02:43 +02:00
Tim Nagel e74acb1e4f Revert "Avoid index reset error in case of unexistant index"
This reverts commit a121a77774.
2014-04-03 08:00:52 +11:00
Josh Worden 1628413e65 Added support for getting documents in unified Doctrine Listener 2014-04-02 10:06:24 -05:00
nurikabe a89856be50 Reset / create new index even if the index doesn't exist 2014-04-02 07:18:46 -04:00
Tim Nagel ff95945819 Merge pull request #527 from baggachipz/master
Upsert-type functionality for existing ORM Entities
2014-04-02 08:47:47 +11:00
Tim Nagel ec7f04a261 Merge pull request #515 from nurikabe/master
Clone entities on delete to preserve ids
2014-04-01 20:22:22 +11:00
Tim Nagel 5855ac6fbd Merge pull request #525 from jvandesande/MultiField
Unset nested "fields" for deeper nested configs too
2014-04-01 09:11:31 +11:00
baggachipz 20810fa415 Upsert-type functionality for existing ORM Entities
This is an attempt to fix the issue: https://github.com/FriendsOfSymfony/FOSElasticaBundle/issues/526

It will cause a significant slowdown in a large batch, but it appears to be the only way to prevent an exception from bubbling up during a normal use case.
2014-03-31 15:16:32 -04:00
Joris van de Sande 588c4e2d02 Unset nested "fields" for deeper nested configs too 2014-03-31 12:52:29 +02:00
Joseph Bielawski f15ca02859 Fix documentation for client overwriting. 2014-03-31 11:59:37 +02:00
nurikabe 0de48d2190 Use identifiers for bulk delete rather than cloning objects 2014-03-29 18:36:06 -04:00
Tim Nagel 40e79b2abe Merge pull request #521 from morticue/master
Corrected bundle class name in install instructions
2014-03-28 08:52:27 +11:00
Joakim Friberg a81a630520 Corrected bundle class name in install instructions 2014-03-27 16:33:20 +01:00
Tim Nagel 8c146134da Merge pull request #519 from merk/logger-debug
Change logging to only be enabled in debug mode
2014-03-26 12:42:34 +11:00
Tim Nagel 38b4074745 Update logger documentation based on configuration change 2014-03-26 12:40:27 +11:00
Tim Nagel 9f27c1dade Update changelog 2014-03-26 12:38:20 +11:00
Tim Nagel e25a5420a5 Logger enabled with debugging 2014-03-26 12:38:20 +11:00
Tim Nagel 37db040096 Merge pull request #435 from merk/documentation
Refactored documentation
2014-03-26 10:09:17 +11:00
Tim Nagel eb7758605e Documentation updates 2014-03-26 10:07:50 +11:00
Tim Nagel 49f077cc30 Merge pull request #510 from peterjmit/master
Make fetchSlice compatible with custom repo method
2014-03-26 10:01:18 +11:00
Tim Nagel befb0907cc Merge branch 'master' into documentation
Conflicts:
	DependencyInjection/Configuration.php
	README.md
2014-03-25 16:04:32 +11:00
Tim Nagel e83ea0b6c8 Merge pull request #505 from piotrantosik/fix_docblocks
Fix some block comment
2014-03-25 15:48:18 +11:00
Tim Nagel 1e44051442 Merge pull request #514 from jvandesande/MultiField
Unset fields if no nested fields are defined
2014-03-25 15:47:06 +11:00
nurikabe 361d80a720 Prevent division by zero error 2014-03-24 11:18:55 -04:00
nurikabe 720917f609 Clone entities on delete to preserve ids 2014-03-24 11:16:31 -04:00
Joris van de Sande 455ff9e0f7 Unset fields if no nested fields are defined 2014-03-24 15:06:24 +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
Tim Nagel 514e63f26f Merge pull request #496 from rayrigam/master
Add support for clients requiring basic HTTP authentication
2014-03-19 12:32:48 +11:00
Ray 4dc08cd006 Added notice about added support for HTTP headers. 2014-03-18 20:07:30 -04:30
Ray 41b347dfe4 Merge remote-tracking branch 'upstream/master'
Conflicts:
	Logger/ElasticaLogger.php
	README.md
2014-03-18 19:59:27 -04:30
rayrigam de70e78b53 Update Configuration.php
Updated to support any HTTP request header type in the "headers" section.
2014-03-18 18:14:03 -04:30