Details
Description
When I define M:N relation and update the schema by SchemaTool then the joining table is created without first letters (e.g. rticle_ag instead of article_tag). Relevant part from the source code:
<?php
/** @entity */
class Article {
/** @manyToMany(targetEntity="Tag") */
public $tags;
}
/** @entity */
class Tag {
/** @manyToMany(targetEntity="Article", mappedBy="tags") */
public $articles;
}
$tool = new \Doctrine\ORM\Tools\SchemaTool($em);
$tool->updateSchema(array(
$em->getClassMetadata('Article'),
$em->getClassMetadata('Tag'),
));
?>
You can download the complete example at http://www.notorm.com/static/doctrine2-notorm/
Your entities are not namespaced are they?