Skip to content
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 #15823

Closed
tepaleguiojo opened this issue Mar 2, 2018 · 1 comment
Closed

active relations not generated in PostgreSQL database #15823

tepaleguiojo opened this issue Mar 2, 2018 · 1 comment
Labels

Comments

@tepaleguiojo
Copy link

What steps will reproduce the problem?

  1. create migration for user schema
  2. create migration for table user.account
  3. create migration for table user.profile with foreign key to user.account
  4. run 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() or getAccount(), depends on what the gii will produce, functions to be used in with() and joinWith()

What do you get instead?

No relations method created. Only rules() and attributeLabels() methods in model class are generated.

Additional info

Q A
Yii version 2.0.14.1
PHP version 7.1.9
Operating system Windows 7 Ultimate 64 Bit
PostgreSQL Version 10.1, compiled by Visual C++ build 1800, 64-bit
@yii-bot
Copy link

yii-bot commented Mar 2, 2018

Issue moved to yiisoft/yii2-gii#343

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants