Open pmartelletti opened 9 years ago
Same is happening with the tenant
relationship :cry:
Altough we have a Tenant
class, we cannot put the relationship there because:
[Doctrine\ORM\Mapping\MappingException]
It is illegal to put an inverse side one-to-many or many-to-many association on mapped superclass 'Tahoe\Bundle\MultiTenancyBundle\Entity\Tenant
#tenantUsers'.
From
doctrine:schema:validate
command:So, we have a problem here as the bundle does not have an User entity (nor even an abstract one, just the
MultiTenantUserInterface
), that part of the relation has to be done on the User entity of your app.So, not sure if:
1 - we need to create a base entity in the tenant user bundle, from which you would extend your user 2- just put this in the documentation (that you need to create the doctrine relationship).
@stevergill , @konradpodgorski : ideas? thoughts?