mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Fixed definition of inversed many to many entity relationship
This commit is contained in:
parent
626c92460b
commit
9a78fd1a26
1 changed files with 1 additions and 5 deletions
|
@ -25,9 +25,5 @@ return static function (ClassMetadata $metadata, array $emConfig): void {
|
|||
->unique()
|
||||
->build();
|
||||
|
||||
$builder->createManyToMany('shortUrls', Entity\ShortUrl::class)
|
||||
->setJoinTable(determineTableName('short_urls_in_tags', $emConfig))
|
||||
->addInverseJoinColumn('short_url_id', 'id', true, false, 'CASCADE')
|
||||
->addJoinColumn('tag_id', 'id', true, false, 'CASCADE')
|
||||
->build();
|
||||
$builder->addInverseManyToMany('shortUrls', Entity\ShortUrl::class, 'tags');
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue