PUGX / PUGXMultiUserBundle

An extension for FOSUserBundle to handle users of different types. Compatible with Doctrine ORM.
163 stars 96 forks source link

Call to undefined method Mod\UserBundle\Entity\UserOne::getCurrency() #67

Open indi32 opened 9 years ago

indi32 commented 9 years ago

My Sylius ecommerce has all required bundles (sysius, fosuser, symfony,...) as vendor bundle. I've added PUGXMultiuserBundle to create 3 forms for 3 different types of users (and its Roles).

Currently users are created and inserted in database but when trying to render the page an error appears:

Fatal error: Call to undefined method Mod\UserBundle\Entity\UserOne::getCurrency() in C:...\vendor\sylius\sylius\src\Sylius\Bundle\CoreBundle\Context\CurrencyContext.php on line 46

As I understand it and I should inject the 'sylius.context.currency' inside my Bundle (ie:Mod/UserBundle) but not sure how to do it.

Has anybody else faced this issue? Thanks in advance. Best regards

ghost commented 9 years ago

Your entity UserOne should implement Sylius UserInteface, this is apparently not the case.