Commit graph

76 commits

Author SHA1 Message Date
Tim Nagel
84e5831a81 Fixing scrutinizer issues 2015-03-13 14:57:36 +11:00
Tim Nagel
d5a9b7b235 Add missing method to HighlightableModelInterface.
This is not a BC break - the method has always been required and lacking the method would cause a fatal error.
2015-03-13 14:56:07 +11:00
Tim Nagel
4af9f442fd Move common sorting code to base Transformer class 2015-03-13 14:56:07 +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
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
Tim Nagel
ca6991d494 Fix serializer 2014-06-23 23:05:57 +10:00
Ahmed Mohamed
4e638a0492 Ensure non-empty properties under fields mappings 2014-04-16 05:27:23 +02:00
Robert Schönthal
f348ebd026 fixes ignore_missing option and unknown index 2014-02-03 09:47:16 +01:00
Craig Marvelley
5d16ffb1bf Remove unused method 2013-12-12 20:50: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
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
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
leahaense
23382c895e Merge pull request #322 from ajgarlag/parentmapping
Fix _parent mapping.
2013-09-10 23:53:15 -07:00
Lea Haensenberger
77156b35aa some formatting and cleaning up 2013-07-18 10:54:11 +02:00
Lea Haensenberger
5b6a1f7bd6 Adding new persister and new transformer to make use of the serializer support of elastica when persisting doctrine objects 2013-07-17 08:58:15 +02: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
Richard Miller
8fde6b235c Merge branch '2.0'
Conflicts:
	Transformer/ElasticaToModelTransformerCollection.php
2012-11-28 21:15:13 +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
5f1e1326d5 Fixing identifier field not being set in TransformerCollection 2012-09-24 23:15:05 +01:00
Richard Miller
b05af88931 Merge branch '2.0'
Conflicts:
	Doctrine/AbstractElasticaToModelTransformer.php
2012-08-07 19:14:16 +01:00
nurikabe
0c21eb4333 Highlightable models. 2012-07-16 11:49:28 -04: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
fran6co
02009c28b0 Minor improvement, using an intermediate variable to hold the transformed objects 2012-05-05 17:00:56 +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