Commit graph

49 commits

Author SHA1 Message Date
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
dd388e4b25 CS fixes 2015-03-12 21:20:00 +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
tamirvs
d57d430ab3 Ignore iterator keys when converting to array 2014-07-04 12:48:27 +10:00
Ahmed Mohamed
4e638a0492 Ensure non-empty properties under fields mappings 2014-04-16 05:27:23 +02:00
Tim Nagel
8668537740 Merge pull request #400 from cordoval/cleanups
clean ups
2013-12-10 02:15:53 -08:00
Damien Alexandre
b149ac235b Replace deprecated calls Document::add to Document::set 2013-11-29 13:53:25 +01: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
Luis Cordova
cacb40286c clean ups 2013-11-20 08:11:15 -05:00
leahaense
23382c895e Merge pull request #322 from ajgarlag/parentmapping
Fix _parent mapping.
2013-09-10 23:53:15 -07:00
Gábor Tóth
9beb277745 Remove unused parameter from ModelToElasticaAutoTransformer.php 2013-07-04 18:47:58 +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
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
1a6fe2c362 Fix format typo for ISO 8601 date conversion
See: dd00409e85 (typo on my part when cherry-picking that commit).
2013-03-07 17:51:20 -05:00
Jeremy Mikola
8f5f12315d Merge branch '2.0'
Conflicts:
	Transformer/ModelToElasticaAutoTransformer.php
2013-03-07 17:38:42 -05:00
Miha Vrhovnik
dd00409e85 Normalize DateTime values as ISO 8601 strings 2013-03-07 17:33:07 -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
daFish
82ec81cb08 Fixes problem with potential null values coming from nested properties. 2013-01-24 16:43:10 +01:00
craig
7717d4d580 Remove exception when multi_field type is used 2012-11-29 14:32:47 +00:00
Julien Muetton
10eae2f254 fixes php5.3 defines ~ for default empty _parent property 2012-11-26 16:04:50 +01:00
Julien Muetton
a36ec87f40 Add tests for _parent, nested and object types 2012-11-26 14:47:08 +01:00
Julien Muetton
23f591bf01 allow _parent mapping 2012-11-26 13:50:14 +01:00
Julien Muetton
5c8dd9b7a6 Transformer transforms nested documents 2012-11-22 14:35:01 +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
Francisco Facioni
08b4095687 Using PropertyPath for resolving what getter to use 2012-05-20 23:57:51 -03:00
Richard Miller
146cf891cd Added transforming mapped attachments 2012-04-19 21:26:19 +01:00
matteosister
bd127e6991 is_callable instead of method_exists 2012-04-09 18:17:55 +02:00
Richard Miller
2e5bac1f52 Removed filtering of null values in transformer 2012-02-27 19:37:59 +00:00
Richard Miller
4baefe6686 Fixed normalizing values twice in transfomer 2012-02-15 10:27:03 +00:00
Richard Miller
a81d878d93 Stopped null values going into transformed data 2012-02-15 10:02:16 +00:00
Richard Miller
a3f4c95e9c Changed to only filter truly null value in Transformer 2012-02-14 17:08:38 +00:00
Emmanuel Vella
9dc168fffc Add recursive values normalization 2011-11-28 17:24:16 +01:00
Emmanuel Vella
aa9793f290 Removed new lines and trailing whitespace 2011-08-24 18:35:38 +02:00
Emmanuel Vella
1db0ffb419 Updated normalizeValue function to keep good types 2011-08-24 16:45:14 +02:00
Anton Babenko
1eee6e92ff Added convertion method for DateTime into timestamp as string 2011-07-12 16:18:47 +02:00
Leszek
1720dbf2f0 Use \RuntimeException 2011-05-26 21:22:46 +02:00
ornicar
30eb9c90f5 Split elastica->model transformer to orm and mongodb implementations 2011-05-09 15:06:55 -07:00
ornicar
f071c98143 Remove ObjectManager typehints to ensure doctrine 2.0 compatibility 2011-05-09 09:23:35 -07:00
ornicar
0db0490be5 Complete provider, finder, transformers and configuration refactoring 2011-04-27 00:59:04 -07:00