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

Support alias for parent table #83

Open
miellaby opened this issue May 20, 2014 · 1 comment
Open

Support alias for parent table #83

miellaby opened this issue May 20, 2014 · 1 comment

Comments

@miellaby
Copy link

When joining tables, NotOrm knows how to put an alias on a joined table if its "public" name differs from its real table name (because of a user customized structure). Columns are then correctly identified by "$name.$column" string ($name actually being the alias).

But it doesn't work for the parent table.

I tried to set up a user structure so to add explicit non-defaut database names on a couple of tables. createJoins works if these tables are refered in select. It doesn't work if the parent table itself is non trivial.

I patched my NotOrm copy for my specific needs. But I feel like it's a more general issue. Result objects may have distinct "name" and "table" attributes so that sql buiding could alias the parent table in the same way than joined tables.

@paip
Copy link

paip commented Mar 31, 2015

Having the same issues.

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