Code Monkey home page Code Monkey logo

Comments (2)

wachterjohannes avatar wachterjohannes commented on August 22, 2024

yes we are also working on symfony 3.0 support for sulu (see issue sulu/sulu#2106). i have currently no idea how much work it would be to upgrade this bundle. i will take a look today and give you information afterwards.

from massivesearchbundle.

benbender avatar benbender commented on August 22, 2024

Thanks for the prompt response - I did a quicktest in the meantime (aliasing versions in composer via "symfony/property-access": "3.0 as 2.8"). Here are the results.

With this simple mapping:

<massive-search-mapping xmlns="http://massive.io/schema/dic/massive-search-mapping">
    <mapping class="AppBundle\Entity\Post">
        <index name="post" />
        <id property="id" />
        <fields>
            <field name="title" type="string" />
            <field name="body" type="string" />
        </fields>
    </mapping>
</massive-search-mapping>

I got the following exception:

[Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException]
Neither the property "post" nor one of the methods "getPost()", "post()", "isPost()", "hasPost()", "__get()" exist and have public access in class "AppBu
ndle\Entity\Post".

Exception trace:
() at /Users/bb/Desktop/c4a/vendor/symfony/property-access/PropertyAccessor.php:379
Symfony\Component\PropertyAccess\PropertyAccessor->readProperty() at /Users/bb/Desktop/c4a/vendor/symfony/property-access/PropertyAccessor.php:272
Symfony\Component\PropertyAccess\PropertyAccessor->readPropertiesUntil() at /Users/bb/Desktop/c4a/vendor/symfony/property-access/PropertyAccessor.php:81
Symfony\Component\PropertyAccess\PropertyAccessor->getValue() at /Users/bb/Desktop/c4a/vendor/massive/search-bundle/Search/Metadata/FieldEvaluator.php:106
Massive\Bundle\SearchBundle\Search\Metadata\FieldEvaluator->getFieldValue() at /Users/bb/Desktop/c4a/vendor/massive/search-bundle/Search/Metadata/FieldEvaluator.php:60
Massive\Bundle\SearchBundle\Search\Metadata\FieldEvaluator->getValue() at /Users/bb/Desktop/c4a/vendor/massive/search-bundle/Search/ObjectToDocumentConverter.php:79
Massive\Bundle\SearchBundle\Search\ObjectToDocumentConverter->objectToDocument() at /Users/bb/Desktop/c4a/vendor/massive/search-bundle/Search/SearchManager.php:136
Massive\Bundle\SearchBundle\Search\SearchManager->index() at /Users/bb/Desktop/c4a/vendor/massive/search-bundle/Command/ReindexCommand.php:219
Massive\Bundle\SearchBundle\Command\ReindexCommand->reindexClass() at /Users/bb/Desktop/c4a/vendor/massive/search-bundle/Command/ReindexCommand.php:149
Massive\Bundle\SearchBundle\Command\ReindexCommand->execute() at /Users/bb/Desktop/c4a/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:256
Symfony\Component\Console\Command\Command->run() at /Users/bb/Desktop/c4a/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:807
Symfony\Component\Console\Application->doRunCommand() at /Users/bb/Desktop/c4a/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:186
Symfony\Component\Console\Application->doRun() at /Users/bb/Desktop/c4a/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:80
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /Users/bb/Desktop/c4a/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:117
Symfony\Component\Console\Application->run() at /Users/bb/Desktop/c4a/bin/console:29

`

I have no idea why the heck the package wants to access a field named "post". Maybe it's a startingpoint for your research!

Thanks in advance!

from massivesearchbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.