Skip to content

Loading…

DBAL-592: doctrine:schema:update keeps droping and recreating the same index #1804

Closed
doctrinebot opened this Issue · 4 comments

2 participants

@doctrinebot

Jira issue originally created by user mikesimonson:

The title says it all.

Anytime I run the doctrine:schema:update command, the last 2 lines of the sql output are to drop and recreate the same index (foreign key)

ALTER TABLE ordersdomains DROP FOREIGN KEY FK_D4D861CF8D9F6D38;
ALTER TABLE ordersdomains ADD CONSTRAINT FK*D4D861CF8D9F6D38 FOREIGN KEY (order*id) REFERENCES `order` (id) ON DELETE CASCADE
@doctrinebot

Comment created by mikesimonson:

The code that trigger the problem.

/****
     * @ORM\ManyToMany(targetEntity="Domain", cascade={"all"})
     * @ORM\JoinTable(name="ordersdomains")
     * @Assert\NotNull()
     ****/
    private $domains;
@doctrinebot

Comment created by @deeky666:

A patch for this issue was supplied in PR: #380

@doctrinebot

Comment created by @doctrinebot:

A related Github Pull-Request [GH-380] was closed:
#380

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label
@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.4.2 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.