-
-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
active relations not generated in PostgreSQL database #343
Comments
Такая же проблема. Исправьте, пожалуйста =) |
@sokollondon можете сделать дамп схемы? Если генерируете не из консоли, а из веб-интерфейса, всё нормально? |
@samdark генерирую из веб-интерфейса. Дамп тут https://yadi.sk/d/tsWhBdKMEe1bKA для примера пытался сгенерировать модель таблицы planning.invoices, должен быть relation getContracts |
Solved the problem by unchecking the |
@sokollondon do you have public as default schema for the connection? |
@samdark Yes |
OK. Cross-schema relations aren't detected. |
Hi, whether the issue solved? I got same issue. Thanks |
It is not. Noone is working on it at the moment. If you want to, feel free to take it. |
This issue has originally been reported by @tepaleguiojo at yiisoft/yii2#15823.
Moved here by @SilverFire.
What steps will reproduce the problem?
user
schemauser.account
user.profile
with foreign key touser.account
php yii gii/model --tableName=user.* --ns="app\modules\user\models" --baseClass="app\components\ActiveRecord"
What is the expected result?
Relation method/s like
getUserAccount()
orgetAccount()
, depends on what the gii will produce, functions to be used inwith()
andjoinWith()
What do you get instead?
No relations method created. Only
rules()
andattributeLabels()
methods in model class are generated.Additional info
The text was updated successfully, but these errors were encountered: