mirror of
https://github.com/shlinkio/shlink.git
synced 2025-01-24 07:16:44 -06:00
Fixed definition of inversed many to many entity relationship
This commit is contained in:
parent
626c92460b
commit
9a78fd1a26
@ -25,9 +25,5 @@ return static function (ClassMetadata $metadata, array $emConfig): void {
|
|||||||
->unique()
|
->unique()
|
||||||
->build();
|
->build();
|
||||||
|
|
||||||
$builder->createManyToMany('shortUrls', Entity\ShortUrl::class)
|
$builder->addInverseManyToMany('shortUrls', Entity\ShortUrl::class, 'tags');
|
||||||
->setJoinTable(determineTableName('short_urls_in_tags', $emConfig))
|
|
||||||
->addInverseJoinColumn('short_url_id', 'id', true, false, 'CASCADE')
|
|
||||||
->addJoinColumn('tag_id', 'id', true, false, 'CASCADE')
|
|
||||||
->build();
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user