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
Jeremy Mikola
5f5ee8a15d
Merge branch '2.0'
2012-04-17 12:21:11 -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
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
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
Richard Miller
118151db7c
Added null_value to mapping configuration
2012-02-27 20:11:25 +00:00
Richard Miller
bb87a0be74
Made default manager configurable
...
Conflicts:
DependencyInjection/FOQElasticaExtension.php
Resources/config/config.xml
Resources/config/mongodb.xml
Resources/config/orm.xml
Resources/config/propel.xml
2012-01-25 11:47:11 +00:00
Jeremy Mikola
ce82e8f591
Merge pull request #62 from merk/patch-1
...
Fix index wide finder config check
2012-01-12 16:11:44 +00:00
Jeremy Mikola
0d0c653777
Merge pull request #58 from merk/index_transformer
...
Index wide finder
Conflicts:
DependencyInjection/FOQElasticaExtension.php
Resources/config/config.xml
2012-01-12 16:10:28 +00:00
Jeremy Mikola
b21e063c9c
Ensure persistence.driver option exists before validating
...
The driver option is not required by the configuration, so we should check for it the validation functions.
If type_prototype is being used, there is a legitimate case where type definitions would not specify a driver. Likewise, the type_prototype may not specify the driver. If we wish to validate that a driver has been specified for a type, we'll have to do that in the extension class after loading the configuration and merging in prototypes.
2012-01-12 16:04:17 +00:00
Jeremy Mikola
5f83fd90c2
Merge pull request #51 from willdurand/propel-support
...
Propel support
Conflicts:
DependencyInjection/FOQElasticaExtension.php
2012-01-12 16:01:33 +00:00
Richard Miller
4e48bbd182
Merge pull request #46 from nurikabe/master
...
Allow variable "fields" configuration node for attachment mapping.
2011-12-16 20:08:34 +00:00
Richard Miller
7dbc4221ae
Adding manager that returns Doctrine style repositories
2011-11-12 21:10:00 +00:00
Robert Gruendler
bec5ddf999
added 'term_vector' configuration node
2011-10-19 22:06:50 +02:00
ornicar
dc35b489a2
Allow empty type settings
2011-09-12 19:52:01 +02:00
ornicar
e83a3344e9
Add a setting registry
2011-09-12 17:33:00 +02:00
ornicar
b6c4a582d3
Fix configuration and indentation
2011-06-10 16:03:17 -07:00
ornicar
6fee4131f4
Doctrine integration refactoring, adds realtime index updates
2011-06-07 11:16:19 -07:00
ornicar
5df741ba82
Update to latest version of Elastica
2011-05-11 09:25:22 -07:00
ornicar
cb3fae7925
Introduce type prototype configuration
2011-04-27 13:24:29 -07:00
ornicar
0db0490be5
Complete provider, finder, transformers and configuration refactoring
2011-04-27 00:59:04 -07:00
ornicar
0a505212a2
Improve configuration class
2011-04-21 12:19:05 -07:00
ornicar
7a574e4ab1
Fix configuration edge case
2011-04-21 12:17:19 -07:00
ornicar
eba893495d
Introduce builtin doctrine provider and finder
2011-04-20 13:53:59 -07:00
ornicar
3a409df971
Simplify configuration and make it more robust
2011-04-17 10:55:46 -07:00
ornicar
7cb9d9ee71
Add configuration processing for the mapping setter
2011-04-15 12:18:36 -07:00
ornicar
65dbe74f32
Add types to the DIC
2011-04-13 15:04:49 -07:00
ornicar
a0c2d61ff0
Set a default index
2011-04-11 19:23:29 -07:00
ornicar
0b4839e718
Introduce the Index manager and setup dependency injection
2011-04-10 14:08:51 -07:00
ornicar
f20ee555ea
Initial commit
2011-04-08 14:11:46 -07:00