gii and through on self

i have 2 table as user and mentorship like this example of yii tutorial.

but when i create model with gii i can’t see through in created model BUT i see 2 HAS_MANY relation.

cannot gii create through on self relations?

Do not totally understand your question, you can alter the relations yourself, relations that gii creates are based on what relations you have defined at database level.