ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 4 replies, has 3 voices, and was last updated by  Dima Makaruk 2 years, 7 months ago.

  • Creator
    Topic
  • #8446

    Dima Makaruk
    Participant

    Property “email” in “OroUser” was already declared, but it must be declared only

    When trying to import doctrine mapping from database to create new entities i’m getting this exception. How is it possible to solve the problem ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #8459

    Alexandr Smaga
    Participant

    Hello @dimonixx !

    Could you please provide full exception stack strace ? Thanks!

    #8460

    Dima Makaruk
    Participant

    Hier is it

    [Doctrine\ORM\Mapping\MappingException]
    Property “email” in “OroUser” was already declared, but it must be declared only once

    Exception trace:
    () at /opt/local/var/www/chemscan-dev/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php:371
    Doctrine\ORM\Mapping\MappingException::duplicateFieldMapping() at /opt/local/var/www/chemscan-dev/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php:2425
    Doctrine\ORM\Mapping\ClassMetadataInfo->_storeAssociationMapping() at /opt/local/var/www/chemscan-dev/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php:2408
    Doctrine\ORM\Mapping\ClassMetadataInfo->mapManyToMany() at /opt/local/var/www/chemscan-dev/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php:250
    Doctrine\ORM\Mapping\Driver\DatabaseDriver->loadMetadataForClass() at /opt/local/var/www/chemscan-dev/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:117
    Doctrine\ORM\Mapping\ClassMetadataFactory->doLoadMetadata() at /opt/local/var/www/chemscan-dev/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php:318
    Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata() at /opt/local/var/www/chemscan-dev/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php:218
    Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor() at /opt/local/var/www/chemscan-dev/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php:114
    Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getAllMetadata() at /opt/local/var/www/chemscan-dev/vendor/doctrine/doctrine-bundle/Doctrine/Bundle/DoctrineBundle/Command/ImportMappingDoctrineCommand.php:108
    Doctrine\Bundle\DoctrineBundle\Command\ImportMappingDoctrineCommand->execute() at /opt/local/var/www/chemscan-dev/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:245
    Symfony\Component\Console\Command\Command->run() at /opt/local/var/www/chemscan-dev/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:900
    Symfony\Component\Console\Application->doRunCommand() at /opt/local/var/www/chemscan-dev/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:191
    Symfony\Component\Console\Application->doRun() at /opt/local/var/www/chemscan-dev/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96
    Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /opt/local/var/www/chemscan-dev/vendor/jms/job-queue-bundle/JMS/JobQueueBundle/Console/Application.php:44
    JMS\JobQueueBundle\Console\Application->doRun() at /opt/local/var/www/chemscan-dev/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121
    Symfony\Component\Console\Application->run() at /opt/local/var/www/chemscan-dev/app/console:23

    #8484

    Sergey
    Oro Core

    Hi, @dimonixx!

    The reason is that extended relation added to metadata with existing “email” association name. We will fix it asap. Thanks a lot!

    #9453

    Dima Makaruk
    Participant

    Hi Sergej,

    is there any progress with the problem ?

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.