0
votes

When I used "php app/console doctrine:schema:update --dump-sql"; I have error:

->[Doctrine\DBAL\Schema\SchemaException]
The table with name 'bissap_forum.category' already exists.

When I used "php app/console doctrine:mapping:info"; i have :

Found 7 mapped entities:

[OK]   BISSAP\PlatformBundle\Entity\Category

[OK]   BISSAP\PlatformBundle\Entity\Skill

[OK]   BISSAP\PlatformBundle\Entity\Advert

[OK]   BISSAP\PlatformBundle\Entity\Image

[OK]   BISSAP\PlatformBundle\Entity\Application

[OK]   BISSAP\PlatformBundle\Entity\AdvertSkill

[OK]   BISSAP\BodyConceptBundle\Entity\Category

So I have 2 entities with same Name (Category), maybe this is why, i have a error, when i use "php app/console doctrine:schema:update --dump-sql"?!

How can i purged my entities mapping?

1

1 Answers

0
votes

Have you tried to set a different table name to one of your Category entities ?

/**
 * My\Category
 *
 * @ORM\Table(name="my_category_table")
 * @ORM\Entity
 */
class Category
{
   ...
}

This way, you won't have any conflict anymore.