Richard Miller
38d863e3ff
Added tests attachment fixture
2012-05-01 20:09:04 +01:00
Richard Miller
146cf891cd
Added transforming mapped attachments
2012-04-19 21:26:19 +01:00
Jeremy Mikola
38bdc44185
Support service ID's and class names in is_indexable_callback
2012-04-19 12:18:30 -04:00
Jeremy Mikola
3ec4a48484
Allow variable types for is_indexable_callback options
...
Actual checking (string, array callback or Closure) is done in the Listener class itself.
2012-04-19 11:43:35 -04:00
nurikabe
4b30686359
Somewhat clearer exception when Elastica results do not match Doctrine objects. Consistent behavior for both transform() and hybrdidTrasnform().
2012-04-19 15:05:18 +01:00
nurikabe
ccc920d46b
Throw a more meaningful error when the number of items retrieved by Doctrine is less than the number of items from ElasticSearch.
2012-04-18 14:39:32 -03:00
Jeremy Mikola
a39170060f
Document arguments passed to is_indexable_callback
2012-04-17 13:43:18 -03:00
Jeremy Mikola
5f5ee8a15d
Merge branch '2.0'
2012-04-17 12:21:11 -04:00
Jeremy Mikola
96776e34ad
Merge pull request #85 from nurikabe/2.0
...
Allow "_source" configuration.
2012-04-17 09:20:42 -07:00
Jeremy Mikola
3b715f2fdd
Merge pull request #93 from Exercise/listener-check-method
...
Listener check method
2012-04-17 08:00:54 -07:00
Jeremy Mikola
a15dd2a411
[Listener] Revise is_indexable_callback documentation
2012-04-16 12:45:10 -04: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
Jeremy Mikola
78a36c196d
[Listener] Use common AbstractListenerTest for ORM and MongoDB ODM
2012-04-16 12:29:25 -04:00
Jeremy Mikola
9613392e8b
Merge branch '2.0'
...
Conflicts:
Command/PopulateCommand.php
2012-04-10 17:54:52 -04:00
Jeremy Mikola
c3391d957a
Add suggested Doctrine and Propel deps for test suite coverage
2012-04-10 17:51:02 -04:00
Jeremy Mikola
7f05e8311a
Skip Doctrine tests if libraries are not available
...
Conflicts:
Tests/Doctrine/RepositoryManagerTest.php
2012-04-10 17:50:27 -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
3863b2dba8
Merge pull request #92 from Exercise/suggested-deps
...
Add suggested Doctrine and Propel deps for test suite coverage
2012-04-10 11:35:41 -07:00
Jeremy Mikola
22789c1b01
Add suggested Doctrine and Propel deps for test suite coverage
2012-04-10 14:35:08 -04:00
Jeremy Mikola
d6dbefe969
Merge pull request #91 from matteosister/is_callable
...
is_callable instead of method_exists
2012-04-09 09:43:42 -07:00
matteosister
bd127e6991
is_callable instead of method_exists
2012-04-09 18:17:55 +02:00
Jeremy Mikola
c30bbd0c34
Merge pull request #90 from matteosister/patch-1
...
a small typo already fixed in master but not here
2012-04-09 07:53:58 -07:00
Matteo Giachino
4a087e2b83
a small typo already fixed in master but not here
2012-04-08 01:19:48 +03:00
nurikabe
87f1141d2e
Remove addDefaultsIfNotSet() on prototyped array node.
2012-04-02 14:15:12 -04:00
nurikabe
99c6aa9ac7
Allow "_source" configuration as per https://github.com/Exercise/FOQElasticaBundle/issues/83 .
2012-04-02 13:53:51 -04:00
Jeremy Mikola
24ca952d46
Update service tag for Doctrine MongoDB ODM listeners
...
See: doctrine/DoctrineMongoDBBundle#80
2012-03-23 15:02:00 -04:00
Jeremy Mikola
661c324e43
Merge pull request #80 from Exercise/repopulate-index
...
Allow single indexes and types to be repopulated
2012-03-13 10:48:07 -07:00
Jeremy Mikola
23cfb31651
Update documentation for custom provider services
2012-03-13 13:44:49 -04:00
Jeremy Mikola
15bcca4e7e
Fix documentation for persistence "identifier" option
2012-03-13 13:42:27 -04:00
Jeremy Mikola
f559700766
Fix typo in Doctrine/AbstractProviderTest
2012-03-12 14:13:54 -04:00
Jeremy Mikola
02f162fd79
Update Elastica dependency for Resetter changes
...
Resetter depends on Elastica_Type::delete(), which was a recent addition to Elastica. See: af6c92b92e5374f92323a65cb6ea957b74fcb1dd
2012-03-12 12:08:53 -04:00
Jeremy Mikola
4a80e27283
Enable PopulateCommand to target indexes and types
...
This makes the Populator service obsolete.
2012-03-12 12:07:51 -04:00
Jeremy Mikola
2046748516
[Provider] Lazy-loaded provider services must have public definitions
...
If provider definitions are not public, they will be removed by RemoveUnusedDefinitionsPass when compiling the container.
2012-03-12 12:07:51 -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
89a368ae35
Allow Resetter to target specific indexes and types (BC break)
...
The original reset() method is now resetAllIndexes(). Additionally, new resetIndex() and resetIndexType() methods were introduced.
2012-03-12 12:07:51 -04:00
Jeremy Mikola
2d2e209373
Remove obsolete MappingRegistry class
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
Jeremy Mikola
43eda480c5
Rename "reseter" to "Resetter" (BC break)
2012-03-12 12:07:51 -04:00
Jeremy Mikola
d3a2335a55
Refactor IndexManager construction (preserves API)
...
Provide the default index name rather than the service itself. Additionally, inject references to each index by name instead of the definitions.
2012-03-12 12:07:51 -04:00
Jeremy Mikola
494b73a860
[Command] Refactor foq:elastica:search configuration
2012-03-12 12:07:51 -04:00
Richard Miller
9046d4d137
Merge branch '2.0'
2012-03-08 12:50:13 +00:00
Richard Miller
45747a3e1f
Removed code coverage from travisci config
2012-03-08 12:49:30 +00:00
Richard Miller
41f18a47af
Merge branch '2.0'
...
Conflicts:
composer.json
2012-03-07 10:20:24 +00:00
Richard Miller
1f8993557b
Added symfony/console to composer.json
2012-03-07 10:18:25 +00:00
Jeremy Mikola
b60256e8fd
Merge branch '2.0'
2012-03-06 20:34:30 -05:00
Jeremy Mikola
0391dff44e
Configure Travis CI
...
This also changes the test suite and bootstrap to depend on packages installed by composer.
2012-03-06 20:33:50 -05:00
Jeremy Mikola
3eb923cc84
Skip Doctrine tests if libraries are not available
2012-03-06 20:22:34 -05:00
Jeremy Mikola
ebeff1aae4
Update composer.json to require Symfony 2.1
2012-03-03 22:48:22 -05:00
Jeremy Mikola
b7d7017381
Merge branch '2.0'
2012-03-03 22:48:10 -05:00