Commit graph

44 commits

Author SHA1 Message Date
Tim Nagel
bb4618c101 Even more QA 2015-03-13 19:34:56 +11:00
Tim Nagel
84e5831a81 Fixing scrutinizer issues 2015-03-13 14:57:36 +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
e796d6179b Elastica, Doctrine\Common and Doctrine\ORM are required for tests 2015-03-12 21:21:18 +11:00
Tim Nagel
dd388e4b25 CS fixes 2015-03-12 21:20:00 +11:00
Tim Nagel
72a981ab51 Attempted fix for php 5.3 2015-03-10 21:49:26 +11:00
Tim Nagel
c5185a0307 Added capability to define property paths 2015-02-09 09:40:49 +11:00
Tim Nagel
9188566dfe Dispatch an event when transforming objects 2015-01-20 14:41:11 +11:00
Tim Nagel
1d5fe44ca4 Fix CS from scrutiniser-ci 2014-09-21 20:12:30 +10:00
Ahmed Mohamed
806452813a Add test multiple objects mapping of at least one auto-mapped and at least one manually mapped 2014-04-20 03:41:41 +02:00
Craig Marvelley
292af9f039 Better variable names 2013-12-12 22:57:02 +00:00
Craig Marvelley
11a87c5ce3 Add test for ElasticaToModelTransformerCollection::hybridTransform 2013-12-12 20:48:15 +00:00
Tim Nagel
8668537740 Merge pull request #400 from cordoval/cleanups
clean ups
2013-12-10 02:15:53 -08:00
Damien Alexandre
e180f1fd61 Merge remote-tracking branch 'peerj/ObjectWithoutProperties' into serializer-integration
Conflicts:
	Transformer/ModelToElasticaAutoTransformer.php
2013-11-29 13:51:58 +01:00
Damien Alexandre
d546b4d3f3 Merge remote-tracking branch 'origin/serializer-transformer' into serializer-integration
Conflicts:
	DependencyInjection/FOSElasticaExtension.php
	Resources/config/config.xml
2013-11-29 10:07:13 +01:00
Luis Cordova
cacb40286c clean ups 2013-11-20 08:11:15 -05:00
Lea Haensenberger
77156b35aa some formatting and cleaning up 2013-07-18 10:54:11 +02:00
Lea Haensenberger
d10e8f56c8 Tests for new provider and new transformer 2013-07-17 10:10:07 +02: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
Patrick McAndrew
fab42fa0ce Properities should not be required for object as elastica can automap 2013-05-24 12:27:37 +01: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
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
Richard Miller
8fde6b235c Merge branch '2.0'
Conflicts:
	Transformer/ElasticaToModelTransformerCollection.php
2012-11-28 21:15:13 +00: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
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
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
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
146cf891cd Added transforming mapped attachments 2012-04-19 21:26:19 +01:00
Richard Miller
2e5bac1f52 Removed filtering of null values in transformer 2012-02-27 19:37:59 +00:00
Richard Miller
a3f4c95e9c Changed to only filter truly null value in Transformer 2012-02-14 17:08:38 +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
Richard Miller
587d1e540e Added checking the transformed values to test 2011-12-05 21:44:12 +00:00
Leszek
b06c268f05 Added Object Persister Test. Made test skipped when elastica library classes are not found. 2011-07-28 22:37:54 +02:00
Leszek
c430aeaea1 Added test for MappingRegistry Populator and ModelToElasticaAutoTransformer. Extend Populator 2011-07-28 21:56:58 +02:00