Answer the question
In order to leave comments, you need to log in
How to adjust index length by field in doctrine via annotations?
Greetings!
I set up indexes through an annotation, the index is not required for the entire field, but only with a length of 3.
How can I set this length?
* @ORM\Table(name="history", indexes={
* @ORM\Index(name="path", columns={"path(3)"}),
* @ORM\Index(name="favorites", columns={"favorites"})
* })
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question