Commit graph

100 commits

Author SHA1 Message Date
nurikabe 1d700261ab Refactor to a single Listener class. Update tests. 2013-12-02 12:42:04 +00:00
Tim Nagel 3c26f157aa Merge branch '2.1.x'
Conflicts:
	Tests/ResetterTest.php
2013-11-11 13:30:29 +11:00
Tim Nagel 52d5d0d55f Remove incorrect copyright header 2013-11-11 13:21:36 +11:00
Tim Nagel 9b6b0b0148 Add query_builder_method option to the transformers 2013-11-11 13:14:02 +11:00
Pierre du Plessis 97c98a0243 Add Symfony ExpressionLanguage support for indexable callback 2013-11-04 00:09:21 +02:00
Karel Souffriau c68bb411ac Add support for dynamic templates 2013-10-30 13:39:43 +01:00
Tim Nagel 85c4dc92f9 Merge tag 'v2.1.3'
Conflicts:
	DependencyInjection/Configuration.php
	README.md
2013-10-30 09:06:48 +11:00
Karel Souffriau 9d1201099d Add date format field 2013-10-29 12:20:32 +01:00
Jeremy Mikola 4a889406e9 Merge branch '2.0.x' into 2.1.x
Conflicts:
	Tests/Transformer/ModelToElasticaAutoTransformerTest.php
2013-07-17 15:55:55 -04:00
Jeremy Mikola ab0c27c481 Fix expected exception class (related to #338)
This corrects a typo in a66a37aebd.
2013-07-17 15:54:06 -04:00
Jeremy Mikola 7ae4be0062 Merge branch '2.0.x' into 2.1.x
Conflicts:
	Tests/Transformer/ModelToElasticaAutoTransformerTest.php
2013-07-17 15:49:09 -04:00
Jeremy Mikola 9e2e8ab1c9 Fix missing getter for private field test for PropertyAccess 2.3+
See: df67239b02
2013-07-12 17:32:33 -04:00
Antonio J. García Lagar 7f3cfa49fb Make the property param optional 2013-06-19 13:57:15 +02:00
Antonio J. García Lagar a386ffefe3 Fix parent mapping 2013-06-17 21:19:11 +02:00
Jeremy Mikola ee6f3cb04d Expect a more specific PropertyAccess exception
RuntimeException is the nearest common ancestor of the PropertyAccessDeniedException (removed in 2.3) and NoSuchPropertyException.

See: symfony/symfony@2a666cb7c3
2013-05-02 11:24:27 -04:00
Tom Corrigan b204f5bf5f Allow symfony >= 2.3
This required a small tweak to the tests as
Symfony\Component\PropertyAccess\Exception\PropertyAccessDeniedException
 has been removed in 2.3
2013-05-03 01:01:29 +10:00
Lukas Kahwe Smith aafb6e53fb made the bundle compatible with Elastica 0.20.x 2013-04-26 14:10:05 +02:00
Karel Souffriau 83e27ede93 Require PropertyAccess component 2013-04-04 21:51:03 +02:00
Jeremy Mikola 2e7d2f2452 Support Symfony 2.2 PropertyAccess with BC for 2.1 (closes #218)
By abstracting the property access, we can easily support Symfony 2.1's Form component and 2.2's PropertyAccess component.

The PropertyAccessor service will be injected into transformers if it is available. Tests were modified to do the same, and expect the appropriate exception depending on which implementation is available.
2013-03-27 17:26:47 -04: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
Jeremy Mikola b12b92845c Merge branch '2.0' 2013-03-07 17:54:21 -05:00
Jeremy Mikola 9ec6a0ae1b Update test assertions for date format 2013-03-07 17:53:08 -05:00
cevou b03ee7cc76 Removed property path changes again 2013-03-04 21:20:55 +01:00
cevou cbe6071969 Code cleanup
- updated deprecated calls
- cleaned up PHPDoc comments
2013-03-02 12:23:44 +01:00
tyx f66858ff3e Add test for the query time in datacollector 2013-02-21 10:52:49 +01:00
Richard Miller 8fde6b235c Merge branch '2.0'
Conflicts:
	Transformer/ElasticaToModelTransformerCollection.php
2012-11-28 21:15:13 +00:00
Julien Muetton 79eb062cf7 add _parent in mapping during index reset 2012-11-28 12:07:09 +01:00
Julien Muetton a36ec87f40 Add tests for _parent, nested and object types 2012-11-26 14:47:08 +01:00
Richard Miller 5f1e1326d5 Fixing identifier field not being set in TransformerCollection 2012-09-24 23:15:05 +01:00
Richard Miller ce5223f85d Updated test to reflect change in IndexManager constrcutor arguments 2012-08-14 10:04:20 +01:00
Richard Miller 67a11a59ce Merge branch '2.0'
Conflicts:
	Finder/FinderInterface.php
	Repository.php
2012-08-07 19:42:38 +01:00
Richard Miller 16f439cfaf Stopped logger collecting data when not in debug mode 2012-08-07 19:39:14 +01:00
Richard Miller a14d56720f Added findHybrid to Repository 2012-08-07 19:25:43 +01:00
Richard Miller 7a8664727c Merge remote-tracking branch 'origin/attachment_type_transformation'
Conflicts:
	Tests/Transformer/ModelToElasticaAutoTransformerTest.php
	Transformer/ModelToElasticaAutoTransformer.php
2012-07-08 15:38:09 +01:00
Richard Miller aa611605b6 Updated test to reflect changes in the way properties are accessed in the transformer 2012-07-08 14:31:19 +01:00
Francisco Facioni 4f26eb6e21 Updated Test to reflect actual configuration case (this bundle is using arrays instead of Elastica_Type_Mapping) 2012-07-02 10:00:40 -03:00
Richard Miller d0085057d5 Fixed modifier issue in Test 2012-06-13 17:22:13 +01:00
Richard Miller 9f3b3daea2 Merge branch '2.0'
Conflicts:
	Command/PopulateCommand.php
2012-06-13 17:08:08 +01:00
Richard Miller ba75ca8d7b Updated location of composer autoload in test bootstrap file 2012-06-13 17:01:10 +01:00
fran6co 927030914c Fixed bug when a transformer returns objects of different classes.\n The doctrine transformer can generate this kind of situations whene it returns proxy objects. 2012-05-05 17:00:42 +01:00
Richard Miller 99c1826d6d Merge pull request #103 from Fran6co/fix-transformer
Fixed bug when a transformer returns objects of different classes
2012-05-05 08:54:10 -07:00
fran6co 1c1c33d327 Fixed bug when a transformer returns objects of different classes.\n The doctrine transformer can generate this kind of situations whene it returns proxy objects. 2012-05-02 23:06:41 -03:00
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 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 7f05e8311a Skip Doctrine tests if libraries are not available
Conflicts:

	Tests/Doctrine/RepositoryManagerTest.php
2012-04-10 17:50:27 -04:00
Jeremy Mikola f559700766 Fix typo in Doctrine/AbstractProviderTest 2012-03-12 14:13:54 -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