Skip to content

Commit

Permalink
TASK: Merge branch '1.1' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellienert committed Dec 20, 2016
2 parents 054c620 + 09abd07 commit 0573327
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Flowpack\ElasticSearch\Domain\Model\GenericType;
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Reflection\ObjectAccess;
use TYPO3\Flow\Utility\TypeHandling;

/**
* This serves functionality for indexing objects
Expand Down Expand Up @@ -95,7 +94,7 @@ public function indexObject($object, $signalInformation = null, Client $client =
*/
protected function getIndexablePropertiesAndValuesFromObject($object)
{
$className = TypeHandling::getTypeForValue($object);
$className = $this->reflectionService->getClassNameByObject($object);
$data = [];
foreach ($this->indexInformer->getClassProperties($className) as $propertyName) {
if (ObjectAccess::isPropertyGettable($object, $propertyName) === false) {
Expand Down Expand Up @@ -171,7 +170,7 @@ protected function getIndexTypeForObject($object, Client $client = null)
if ($client === null) {
$client = $this->client;
}
$className = TypeHandling::getTypeForValue($object);
$className = $this->reflectionService->getClassNameByObject($object);
$indexAnnotation = $this->indexInformer->getClassAnnotation($className);
if ($indexAnnotation === null) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "This package provides wrapper functionality for the Elasticsearch engine.",
"require": {
"ext-curl": "*",
"typo3/flow": "~3.0"
"typo3/flow": "~2.3|~3.0"
},
"autoload": {
"psr-0": {
Expand Down

0 comments on commit 0573327

Please sign in to comment.