Commit graph

25 commits

Author SHA1 Message Date
Tim Nagel
9188566dfe Dispatch an event when transforming objects 2015-01-20 14:41:11 +11: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
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
Lea Haensenberger
77156b35aa some formatting and cleaning up 2013-07-18 10:54:11 +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
Julien Muetton
a36ec87f40 Add tests for _parent, nested and object types 2012-11-26 14:47:08 +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
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
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