-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Entity class 'Talent' used in the discriminator map of class 'AppBundle\Entity\User' does not exist #4046
Comments
Try mapping your class as |
@jbinfo I have never tried but I am pretty sure this won't work... having 2 different user classes with SyliusUserBundle. We would like to support it, but right now it is not the case, most likely. |
@pjedrzejewski I'm working with |
@michalmarcinkowski Do you think if I changer |
@jbinfo No, if you use FOSUserBundle then it should be fine. Did you register Company and Talent as resources in SyliusResourceBundle? It can be that SRB does not support entities with discriminator maps. |
@pjedrzejewski No, I didn't register any resource, my config file: sylius_mailer:
driver: doctrine/orm # Configure the doctrine orm driver used in the documentation.
sender:
name: My website
address: no-reply@my-website.com Right now I don't use SRB in my app, it's just a hard dependency for |
Well, then it is really strange, because Sylius bundles should not affect it then. Have you tried replacing "Talent" with full class name? (with namespace) |
@michalmarcinkowski @pjedrzejewski it's working with My new /**
* @ORM\Entity
* @ORM\Table(name="`user`")
* @ORM\InheritanceType("JOINED")
* @ORM\MappedSuperclass()
*/
abstract class User extends BaseUser
{
// ....
} Thank you :) |
@jbinfo Great you've found a solution 👍 If everything is resolved, could you close this issue please? |
@steffenbrem done, thank you. |
👍 |
I want to work with
SyliusMailerBundle
to manage mails, when I try to execute this command:It show me this error:
When I remove
SyliusMailerBundle
andSyliusResourceBundle
fromAppKernel
the problem gone.My
User
entity:I have two types of user
Talent
andCompany
that extends theUser
entity.I have found an entry on the
sylius-dev
Google group same problem: https://groups.google.com/forum/#!topic/sylius-dev/MgzLzgDKIxYAny advice please, thank you.
The text was updated successfully, but these errors were encountered: