Giter Club home page Giter Club logo

Comments (9)

dxops avatar dxops commented on June 9, 2024

@gplanchat Please show composer show --installed | grep oro output here

from orocommerce.

gplanchat avatar gplanchat commented on June 9, 2024
$ composer show --installed | grep oro
oro/calendar-bundle                        1.0.0-beta.5       Oro Calendar Bundle
oro/commerce                               1.0.0-beta.5       OroCommerce - an open-source Business to Business Commerce application. \nThis package contains bundles and needs to be added ...
oro/doctrine-extensions                    1.0.13             Doctrine Extensions for MySQL and PostgreSQL.
oro/platform                               1.10.10-beta.5     Business Application Platform (BAP)
synolia/oroneo                             0.2.1              OroCommerce Akeneo connector

from orocommerce.

gplanchat avatar gplanchat commented on June 9, 2024

To be mentioned, the warnings seems to be in the notifications panel and appearing on each page refresh now

Edit : probably linked to the fact I ran an attribute import with the Akeneo connector

image

from orocommerce.

gplanchat avatar gplanchat commented on June 9, 2024

It seems to be coming from the Akeneo-Oro connector's strategy object.

I'm still investigating

from orocommerce.

dxops avatar dxops commented on June 9, 2024

@gplanchat looks like you are trying to create already existing fields
https://github.com/synolia/oroneo/blob/9457f3748ac1d81d8cdff50d228d234dae65071a/Migrations/Data/ORM/SetDefaultMappings.php#L78-L79 based on this configuration in https://github.com/synolia/oroneo/blob/9457f3748ac1d81d8cdff50d228d234dae65071a/ImportExport/Writer/AttributeWriter.php#L52

But Product's fields from OroCommerce side are not in 'extend' scope https://github.com/orocommerce/orocommerce/blob/1.0.0-beta.5/src/Oro/Bundle/ProductBundle/Entity/Product.php#L378

So two configs appear in the database, extend proxy generated from 'extend' config and it differs from methods in Product's class. That's why notice appears.

I suggest you check configs from 'entity' scope.

from orocommerce.

gplanchat avatar gplanchat commented on June 9, 2024

You mean, this part :

<?php

            $entity->fromArray(
                'extend',
                [
                    'target_column'   => $target,
                    'target_entity'   => LocalizedFallbackValue::class,
                    'relation_key'    => RelationType::MANY_TO_MANY.'|'.Product::class.'|'.LocalizedFallbackValue::class.'|'.$entity->getFieldName(),
                    'target_grid'     => [
                        $target,
                    ],
                    'target_title'    => [
                        $target,
                    ],
                    'target_detailed' => [
                        $target,
                    ],
                    'cascade' => [
                        'persist',
                    ],
                    'without_default' => true,
                ],
                []
            );

Should have its first argument changed from extend to entity for system attributes ?

from orocommerce.

dxops avatar dxops commented on June 9, 2024

@gplanchat nope, the scope is valid here.

$provider = $this->configManager->getProvider('entity'); before https://github.com/synolia/oroneo/blob/9457f3748ac1d81d8cdff50d228d234dae65071a/ImportExport/Writer/AttributeWriter.php#L47 to check that property exists.

from orocommerce.

gplanchat avatar gplanchat commented on June 9, 2024

Thank you @SergeyZ, your hints and help drove me to the solution

I made the PR synolia/oroneo#7

from orocommerce.

dxops avatar dxops commented on June 9, 2024

@gplanchat You are welcome!

from orocommerce.

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.