B
B
BonBon Slick2018-11-12 00:58:32
Doctrine ORM
BonBon Slick, 2018-11-12 00:58:32

Principle of generating index, foreign key?

Can't figure out where and how it generates this metadata

['foreign_key' => 'fk_68c58ed95cc1316d', 'index' => 'idx_68c58ed95cc1316d', 'index' => 'uniq_68c58ed95cc1316d'],

It is necessary to manually generate these three fields, and before doing it, I would like to see how the doctrine does, perhaps it will be possible to use that piece of code instead of hacking my own worse.
Who knows where the generation takes place? Can you link to the file please?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2018-11-12
@BonBonSlick

It?
https://github.com/doctrine/dbal/blob/9ec9bb9bfc76...
Below is the method for indexes
And by a storm see where and how it twitches...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question