Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The entity-class 'Mautic\DynamicContentBundle\Entity\DynamicContentLeadData' mapping is invalid #5847

Closed
luizeof opened this issue Mar 21, 2018 · 3 comments
Labels
bug Issues or PR's relating to bugs pending-feedback PR's and issues that are awaiting feedback from the author

Comments

@luizeof
Copy link
Member

luizeof commented Mar 21, 2018

Please DO NOT report security vulnerabilities here. Send them to security@mautic.com instead.

What type of report is this:

Q A
Bug report? Y
Feature request?
Enhancement?

Description:

When running php app/console doctrine:schema:validate the console says:

[Mapping] FAIL - The entity-class 'Mautic\DynamicContentBundle\Entity\DynamicContentLeadData' mapping is invalid

Almost same that #4364 but we don't have any custom field with special characters

If a bug:

Q A
Mautic version 2.12.2 / 2.11.0 / 2.10.0
PHP version 7.0.28

Steps to reproduce:

  1. Open Console
  2. run app/console doctrine:schema:validate

Log errors:

[Mapping] FAIL - The entity-class 'Mautic\DynamicContentBundle\Entity\DynamicContentLeadData' mapping is invalid:

  • The association Mautic\DynamicContentBundle\Entity\DynamicContentLeadData#dynamicContent refers to the inverse side field Mautic\DynamicContentBundle\Entity\DynamicContent#id which is not defined as association.
  • The association Mautic\DynamicContentBundle\Entity\DynamicContentLeadData#dynamicContent refers to the inverse side field Mautic\DynamicContentBundle\Entity\DynamicContent#id which does not exist.
    [Database] OK - The database schema is in sync with the mapping files.
@dbhurley dbhurley added the bug Issues or PR's relating to bugs label Mar 22, 2018
@npracht
Copy link
Member

npracht commented Jul 7, 2020

Hi there, as we are only providing fixes for Mautic 3.x going forward, can you confirm if this continues in Mautic 3.0.1?
Thanks!

@npracht npracht added pending-feedback PR's and issues that are awaiting feedback from the author triage-mautic-3 labels Jul 7, 2020
@RCheesley
Copy link
Sponsor Member

Closing due to a lack of recent activity. Please create a new issue and link to this one if necessary.

@bsmolyanov
Copy link

I had the same issue and managed to resolve it by replacing 'id' with 'stats' on line 68 of mautic/app/bundles/DynamicContentBundle/Entity/DynamicContentLeadData.php
like this:
instead of ->inversedBy('id')
it became ->inversedBy('stats')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or PR's relating to bugs pending-feedback PR's and issues that are awaiting feedback from the author
Projects
None yet
Development

No branches or pull requests

5 participants