OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions Property "email" in "OroUser" was already declared, but it must be declared only

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

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #33772

    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
  • #33773

    Alexandr Smaga
    Participant

    Hello @dimonixx !

    Could you please provide full exception stack strace ? Thanks!

    #33774

    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

    #33775

    Sergey
    Participant

    Hi, @dimonixx!

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

    #33776

    Dima Makaruk
    Participant

    Hi Sergej,

    is there any progress with the problem ?

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

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No