Skip to content

Error after installing the plugin #170

@royalphp

Description

@royalphp

After I installed this plugin in my project, I get the following error:

libxml error: Element '{http://gediminasm.org/schemas/orm/doctrine-extensions-mapping}timestampable': No matching global element declaration available, but demanded by the strict wildcard.
in /app/vendor/sylius/adyen-plugin/config/doctrine/AdyenPaymentDetail.orm.xml at line 25
libxml error: Element '{http://gediminasm.org/schemas/orm/doctrine-extensions-mapping}timestampable': No matching global element declaration available, but demanded by the strict wildcard.
in /app/vendor/sylius/adyen-plugin/config/doctrine/AdyenPaymentDetail.orm.xml at line 28

I researched what the problem is, in the config/doctrine/AdyenPaymentDetail.orm.xml and config/doctrine/AdyenReference.orm.xml files gedmo is used in the following fields:

<field name="createdAt" column="created_at" type="datetime">
    <gedmo:timestampable on="create"/>
</field>
<field name="updatedAt" column="updated_at" type="datetime" nullable="true">
    <gedmo:timestampable on="update"/>
</field>

I tried replacing this with a simple use without gedmo as follows, and it worked:

<field name="createdAt" column="created_at" type="datetime"/>
<field name="updatedAt" column="updated_at" nullable="true" type="datetime"/>

I looked at similar cases for the MolliePlugin plugin, and it doesn't use gedmo, although there are such fields. Could you remove gedmo, and thus make this plugin more flexible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions