Questions around the Aimeos bundle for the Symfony framework
Forum rules: Always add your Symfony, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#4387 by aimeos
06 Jul 2017, 15:52
That highly depends on your used authentication configuration. Please have a look into the Symfony documentation for a deeper insight into authentication.

An example for setting up the FOS user bundle is described here:
https://aimeos.org/docs/Symfony/Configure_FOSUserBundle_login

There you can set up an admin account executing this command:
Code: Select allbin/console aimeos:account --admin <your email>
#4395 by ksicinski
10 Jul 2017, 20:44
I add this configuration and stop at lat command line ;/
./bin/console fos:user:promote <email address> ROLE_ADMIN


I got this error:
[Doctrine\ORM\Mapping\MappingException]
Duplicate definition of column 'salt' on entity 'Aimeos\ShopBundle\Entity\FosUser' in a field or discriminator column mapping.


any tips?
#4396 by aimeos
11 Jul 2017, 12:39
ksicinski wrote:
./bin/console fos:user:promote <email address> ROLE_ADMIN

I got this error:
[Doctrine\ORM\Mapping\MappingException]
Duplicate definition of column 'salt' on entity 'Aimeos\ShopBundle\Entity\FosUser' in a field or discriminator column mapping.


We've release the new 2017.07 version today. Can you please update to that version and set up authentication like described in the documentation?
https://github.com/aimeos/aimeos-symfony#installation

Then, things should work as expected when using fos:user:promote
#4397 by ksicinski
11 Jul 2017, 19:07
Your update help.

I have only one remark this is bad lousy solution:
Code: Select allcomposer update --no-dev


I can forgot add this --no-dev parameters and add some new bundle and make update at production server this maibe crashed prod shop ;/

I thin better option will be create symfony console command to run all method hidden in this --no-dev parameters and add to manual information to run this command if user want install dev items.