DDC-961: First letters are missing in M:N tables #5496

doctrinebot opened this Issue Dec 30, 2010 · 3 comments

2 participants


Jira issue originally created by user vrana:

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:

/*** @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);

You can download the complete example at http://www.notorm.com/static/doctrine2-notorm/


Comment created by @beberlei:

Your entities are not namespaced are they?


Comment created by @beberlei:

Yes, this is related to entities in global namespaces only. That is why nobody realized it before.

Fixed now.


Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0.1 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment