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

--useSchemaName not implemented #264

Open
bwragg opened this issue Dec 9, 2019 · 2 comments
Open

--useSchemaName not implemented #264

bwragg opened this issue Dec 9, 2019 · 2 comments

Comments

@bwragg
Copy link

bwragg commented Dec 9, 2019

Hi,

Would I be right in saying that --userSchemaName has not yet been implemented in the model generator code? Can't seem to get it working and had a look over the code and seems only half there.

If so I might try adding it in? anything I should know before doing this?

Thanks

@schmunk42
Copy link
Owner

I looked at the source of Yii, but I do not relly get what it is doing.
What is your use case?

If so I might try adding it in? anything I should know before doing this?

Tests must pass :) Test for this feature would be nice.

@bwragg
Copy link
Author

bwragg commented Jan 20, 2020

sorry for the delay in getting back to you.

it is meant to do the following:

"This indicates whether to include the schema name in the ActiveRecord class when it's auto generated. Only non default schema would be used"

Im using Postgresql Its useful to get around the issue of having two models that live in 2 schemas with the same name. e.g Sales schema and Support schema may both have "job" tables and "job" models. it would create 1 as SalesJob.php and the other as SupportJob.php

I'll try and come up with some tests.

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

No branches or pull requests

2 participants